SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 16/10/2011, 11:53 AM   #1
usrb1n
Big Clucker
 
usrb1n's Avatar
 
Join Date: Mar 2011
Location: Bern, Switzerland
Posts: 93
Reputation: 32
Post [0.3d] Youtube Player

YouTube
Player

Info:

With this FilterScript you can play music from Youtube on your server. The only thing you need to do is load the filterscript and paste a youtube link ! As easy as that, you don'need plugins or includes...only this filterscript. The script is using the function PlayAudioStreamForPlayer from SA-MP 0.3d to play the songs, you don't need anything else than this client/server version to use the filterscript.

Features:

- Play for yourself: You can play a song only for you, the only thing you need is paste the youtube link and the song will start playing for you(The player who used the command).
- Play for someone: With this option, you can play a song for someone else than you. You will need to paste the youtube link and then you will be asked the player ID you want to play it for. (Attention, in this version, 1.0, you can ONLY enter one ID at the same time. If you want to play it for more players use the option 3 or 4, or repeat the option 2 few times with each ID)
- Play for a location: By using this option, you will be able to play the song in your location + the radius you choose.
- Play for all: There's nothing else to say here, this option will let you play a song for the whole server.

Commands:

/youtube - This command will open a dialog with the options you have(Only for RCON admins)
/stopu2b - This command will stop the streaming (even if is not from this filterscrip). I first scripted it as /stop but then I decided to change it because many servers may have the command /stop already in use for something.

Coming soon:
I released v1.0 to have some reviews from users, but the v1.1 will be here in one or two days. Few things will include is:

- TinyURL links for stream - Since actual links are large as fuck and maybe annoying, I will include something to convert your streaming links to TinyURL links.
- InfoBox - A dialog MSG box with the song it's played, duration...and more info.

Kown bugs:

Nothing yet, waiting for your reviews.
PS: This is my first released FS so please don't be very bad. :P


Video (Replaced screenshots with a video, thank you Nenad)

[ame]http://www.youtube.com/watch?v=6dly-iV62SM[/ame]

Credits:

Me(usrb1n) for this FilterScript.
Youtube-mp3 for video conversion


Downloads:

v1.0 - Mediafire
v1.0 - Pastebin

Do Not: remove the credits, claim this as your own work, re-release this without my (usrb1n) permission!

Last edited by usrb1n; 16/10/2011 at 02:10 PM.
usrb1n is offline   Reply With Quote
Old 16/10/2011, 11:56 AM   #2
Ash.
High-roller
 
Ash.'s Avatar
 
Join Date: Jan 2010
Location: England
Posts: 2,109
Reputation: 163
Default Re: [0.3d] Youtube Player

I'm not going to show my post yet because I want to have some opinions first. So please don't ask for it, I will show it later.

Anyway, isn't there a rule saying that you have to release the .pwn file with the .amx file?
__________________
TruckingWorld
Work, Play, Make Friends
Written from scratch, and originally released in 2011, play today!
Visit the forum | Play the game
Ash. is offline   Reply With Quote
Old 16/10/2011, 11:57 AM   #3
[DOG]irinel1996
High-roller
 
[DOG]irinel1996's Avatar
 
Join Date: Jan 2010
Posts: 1,697
Reputation: 288
Default Respuesta: [0.3d] Youtube Player

Looks nice, good job.
[DOG]irinel1996 is offline   Reply With Quote
Old 16/10/2011, 12:01 PM   #4
usrb1n
Big Clucker
 
usrb1n's Avatar
 
Join Date: Mar 2011
Location: Bern, Switzerland
Posts: 93
Reputation: 32
Default Respuesta: [0.3d] Youtube Player

Quote:
Originally Posted by funky1234 View Post
I'm not going to show my post yet because I want to have some opinions first. So please don't ask for it, I will show it later.

Anyway, isn't there a rule saying that you have to release the .pwn file with the .amx file?
I never saw that rule...And it's my work, I think I'm the only one who can decide if I release the code or not.

Quote:
Originally Posted by irinel1996 View Post
Looks nice, good job.
Thank you.
usrb1n is offline   Reply With Quote
Old 16/10/2011, 12:01 PM   #5
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 3,047
Reputation: 1001
Default Re: [0.3d] Youtube Player

.pwn plz .. or this thread getting deleted
__________________
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 16/10/2011, 12:02 PM   #6
JernejL
Beta Tester
 
JernejL's Avatar
 
Join Date: Jan 2006
Location: Slovenia
Posts: 612
Reputation: 412
Default Re: [0.3d] Youtube Player

link removed - no source - no release - the file is considered harmful if people can't see what's inside.
You should have read the rules.. ignorance is not an excuse.

If you don't want to reveal the source then don't release it.
__________________


samp://198.50.173.59:7777 - Partyserver - TurtleServer (now with extra turtles)!

SA-MP map editor: Not a in-game script but a proper windows application!
http://forum.sa-mp.com/showthread.php?t=282801
JernejL is offline   Reply With Quote
Old 16/10/2011, 12:07 PM   #7
GangsTa_
High-roller
 
GangsTa_'s Avatar
 
Join Date: May 2010
Location: Republic of Moldova
Posts: 1,131
Reputation: 51
Default Re: [0.3d] Youtube Player

Looks cool.
__________________
i5-5200U @ 2.6 GHz
GTX 950M 2GB GDDR3 128-bit
8,00GB DDR3 RAM
128GB SSD, 1TB 5400RPM HDD
Windows 10 Pro x64
GangsTa_ is offline   Reply With Quote
Old 16/10/2011, 12:08 PM   #8
usrb1n
Big Clucker
 
usrb1n's Avatar
 
Join Date: Mar 2011
Location: Bern, Switzerland
Posts: 93
Reputation: 32
Default Respuesta: Re: [0.3d] Youtube Player

Quote:
Originally Posted by JernejL View Post
link removed - no source - no release - the file is considered harmful if people can't see what's inside.
You should have read the rules.. ignorance is not an excuse.

If you don't want to reveal the source then don't release it.
Re-added the download link with the source included, I'm sorry I didn't know that.
usrb1n is offline   Reply With Quote
Old 16/10/2011, 12:15 PM   #9
Nenad
Huge Clucker
 
Nenad's Avatar
 
Join Date: Jul 2010
Location: Srpski Brod, Bosna i Hercegovina
Posts: 318
Reputation: 33
Default Re: [0.3d] Youtube Player

I will test this but I think it is the same as radio filterscript just edited for using with youtube :P btw put the source file on http://www.pastebin.com/ because it is small script
EDIT: tested it work great
__________________
Nenad is offline   Reply With Quote
Old 16/10/2011, 12:24 PM   #10
usrb1n
Big Clucker
 
usrb1n's Avatar
 
Join Date: Mar 2011
Location: Bern, Switzerland
Posts: 93
Reputation: 32
Default Respuesta: Re: [0.3d] Youtube Player

Quote:
Originally Posted by Nenad View Post
I will test this but I think it is the same as radio filterscript just edited for using with youtube :P btw put the source file on http://www.pastebin.com/ because it is small script
EDIT: tested it work great
Added the pastebin link.
And no, I don't think it's the same since you can't just stream youtube links
I'm using a page to convert it, then get the information from there and stream...

Anyway, test it and give me your opinion.
usrb1n 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
YouTube SpiderWalk Everything and Nothing 8 22/07/2011 02:20 PM
YouTube? Tyler_Cordwell Everything and Nothing 8 28/05/2011 10:32 AM
Do YOU like the new YouTube ? Saurik Everything and Nothing 61 06/04/2011 08:29 PM
Youtube in 3D [MM]Murphy Everything and Nothing 19 07/08/2009 09:13 PM


All times are GMT. The time now is 05:01 PM.


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