SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 19/10/2011, 10:51 AM   #1
usrb1n
Big Clucker
 
usrb1n's Avatar
 
Join Date: Mar 2011
Location: Bern, Switzerland
Posts: 69
Reputation: 32
Default Youtube Streamer

YouTube
Streamer v1.0

Well, after releasing my Youtube Player Filterscript, some users asked me to make an include for streaming youtube music. So I decided to make this Include so players can use it in their scripts as they want, only by adding one line.

Functions:
Code:
YoutubeStream(playerid, youtubeurl); // This function will stream the song/sound from the url to playerid
YoutubeStopStream(playerid); // This function will stop streaming a song/sound.

How it works?:

Well, is at simple as you can see. You are free to get the playerid or youtubeurl as you want and then just make it play for a user. The function YoutubeStream works with full youtube links (even if video ID is 11 or 12 chars.). The second function, YoutubeStopStream will stop the actual streaming and will show this message: "Youtube streaming was stoped".

1: You have to include it on your script.
Code:
#include <youtube>

2: You can use it anywhere you want with the to also known functions.

To play a song, use..
Code:
YoutubeStream(playerid, youtubeurl);

To stop playing a song for a user, use...
Code:
YoutubeStopStream(playerid);

If you type incorrect or invalid URL, a red message will be showed for PlayerID saying the URL is invalid, you can change that as you want..

Anything else?:

Yes, I will update the Include and the Filterscript to v2.0 in 2,3 days. This update will include information about the youtube song, such as Name and duration.
I will also add TinyURL short link-ing, so you can forget about long and ugly links.

Downloads:

v1.0 - Include file
__________________
San Andreas Roleplay

Last edited by usrb1n; 19/10/2011 at 12:02 PM.
usrb1n is offline   Reply With Quote
Old 19/10/2011, 10:55 AM   #2
suhrab_mujeeb
Guest
 
Posts: n/a
Default Re: Youtube Streamer

Wow! Never thought something like that was possilbe? Does it play videos or just songs? Do you have a video of it to show what it does?
  Reply With Quote
Old 19/10/2011, 10:56 AM   #3
usrb1n
Big Clucker
 
usrb1n's Avatar
 
Join Date: Mar 2011
Location: Bern, Switzerland
Posts: 69
Reputation: 32
Default Respuesta: Re: Youtube Streamer

Quote:
Originally Posted by suhrab_mujeeb View Post
Wow! Never thought something like that was possilbe? Does it play video ingame?
NO, only the sound. Check my filterscript by clicking this link
__________________
San Andreas Roleplay
usrb1n is offline   Reply With Quote
Old 19/10/2011, 11:06 AM   #4
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 3,036
Reputation: 1001
Default Re: Youtube Streamer

Awesome ! I love spain ppl (i want to learn spanish ! ) Gracias !
__________________
Mah Github. - Mah Youtube
Interested in a full featured and cheap derby gamemode or need host-tab ? Contact me on skype: michael.belgium
Michael@Belgium is offline   Reply With Quote
Old 19/10/2011, 11:11 AM   #5
suhrab_mujeeb
Guest
 
Posts: n/a
Default Re: Youtube Streamer

What will be PAWNs next project? Making human clones?
  Reply With Quote
Old 19/10/2011, 12:00 PM   #6
usrb1n
Big Clucker
 
usrb1n's Avatar
 
Join Date: Mar 2011
Location: Bern, Switzerland
Posts: 69
Reputation: 32
Default Respuesta: Re: Youtube Streamer

Quote:
Originally Posted by Michael@Belgium View Post
Awesome ! I love spain ppl (i want to learn spanish ! ) Gracias !
Thank you !
Spain loves you too ! If you want to learn, it's very easy, depends where are you from.

Quote:
Originally Posted by suhrab_mujeeb View Post
What will be PAWNs next project? Making human clones?
Maybe, who knows Depends on Kalcor..
__________________
San Andreas Roleplay
usrb1n is offline   Reply With Quote
Old 19/10/2011, 12:02 PM   #7
Issam
Huge Clucker
 
Join Date: Apr 2011
Location: SA-MP Forums. Admin:1337
Posts: 441
Reputation: 26
Default Re: Youtube Streamer

Awesome,if it was going to play VIDEOS thats gonna OWN MTA much...
__________________
Hmm
Issam is offline   Reply With Quote
Old 19/10/2011, 12:13 PM   #8
Dripac
Banned
 
Join Date: Apr 2009
Location: Vienna, Austria
Posts: 1,767
Reputation: 256
Default Re: Respuesta: Re: Youtube Streamer

Quote:
Originally Posted by usrb1n View Post
Thank you !
Spain loves you too ! If you want to learn, it's very easy, depends where are you from.



Maybe, who knows Depends on Kalcor..
You are from spain? Lol, by looking at your filterscript and your username i though you are from another city.

OT - Nice include!
Dripac is offline   Reply With Quote
Old 19/10/2011, 12:18 PM   #9
usrb1n
Big Clucker
 
usrb1n's Avatar
 
Join Date: Mar 2011
Location: Bern, Switzerland
Posts: 69
Reputation: 32
Default Respuesta: Re: Respuesta: Re: Youtube Streamer

Quote:
Originally Posted by Dripac View Post
You are from spain? Lol, by looking at your filterscript and your username i though you are from another city.

OT - Nice include!
Well, I'm from Romania, but I am living and studying here actually.
__________________
San Andreas Roleplay
usrb1n is offline   Reply With Quote
Old 27/10/2011, 05:46 PM   #10
Dandimite
Little Clucker
 
Join Date: Dec 2010
Posts: 12
Reputation: 0
Default AW: Youtube Streamer

The Include dont work on Linux cause the "-1" on "crypted = strfind(data, "\"h\"", true, -1);".

You need 0.

It returns a Link but this Link dont work. (Only on Linux !)

On Windows all workes perfect.


Sry for bad English.
Dandimite is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] [INC] TSS - tAxI's Streamer Systems: full Streamer + HOUSING SYSTEM Utillity cptnsausage Includes 102 28/01/2015 07:14 PM
Need 3dtextlabel Streamer And Gangzone Streamer !! Please Help . Not streamer plugin . jame42 Scripting Help 4 30/05/2012 07:33 AM
About Youtube Michael@Belgium Everything and Nothing 13 07/04/2011 09:17 PM
[Include] [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! Yaheli_Faro Includes 46 20/04/2010 02:53 PM
Dominator's Object Streamer - a wize and new streamer - invisible objects fix tsha Filterscripts 23 19/09/2009 08:37 PM


All times are GMT. The time now is 04:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.