SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 11/06/2014, 08:15 AM   #11
Niko_boy
High-roller
 
Niko_boy's Avatar
 
Join Date: Aug 2010
Location: Somewhere i belong
Posts: 1,435
Reputation: 138
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Good job. I liked the use of seconds for Playback finish :P
__________________
$$$ If anyone NEED A SCRIPTER for:
  • DM/TDM/Freeroam/Stunt server, filterscripts or Bug fixing.or some general mapping. Above all any of the logos and banners or signature sorta stuff aswell.At some cheap and worth-full prices.
can Contact me for more info or a deal.
•••[CLOSED]LCS•Freeroam•DM•Stunts•••AutoArena [0.3z][No SkinShot][sixtytiger.com]Want a decent Attack Defend Gamemode?
N/A176.31.229.148:7830Get This! Attack-Defend(v2.3.1)
Niko_boy is offline   Reply With Quote
Old 11/06/2014, 11:14 AM   #12
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 2,043
Reputation: 291
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Does all youtube links work like copyrighted music?
__________________

Admigo is online now   Reply With Quote
Old 11/06/2014, 11:18 AM   #13
iRaiDeN
Gangsta
 
iRaiDeN's Avatar
 
Join Date: Mar 2014
Location: Israel
Posts: 527
Reputation: 41
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Wow nice job, rather than explode could use sscanf faster and more convenient, the code nicely organized and programmed in a good way, very beautiful!
iRaiDeN is offline   Reply With Quote
Old 02/07/2014, 02:42 PM   #14
Reynolds
Big Clucker
 
Join Date: Jul 2010
Posts: 103
Reputation: 4
Default Respuesta: [MV]_Youtube | Simple but yet useful youtube streamer

Quote:
Does all youtube links work like copyrighted music?
I would suppose music which is copyrighted in the country the server is hosted in would not play.
Reynolds is offline   Reply With Quote
Old 04/07/2014, 12:12 PM   #15
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 3,040
Reputation: 1001
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Quote:
Originally Posted by iZN View Post
Would be great if you used sscanf. Appreciate it though, I was looking for some perfect API, I haven't heard about this API.
Quote:
Originally Posted by Jochemd View Post
y u use explode y u no use sscanf
Quote:
Originally Posted by iRaiDeN View Post
Wow nice job, rather than explode could use sscanf faster and more convenient, the code nicely organized and programmed in a good way, very beautiful!
I've searched and tested my ass off to implement sscanf. I can't find a way to let it work with sscanf. The explode function is the easiest and probably the only way.

Quote:
Originally Posted by Admigo View Post
Does all youtube links work like copyrighted music?
It should i guess. Just test it with a copyrighted video.
__________________
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 04/07/2014, 12:47 PM   #16
doreto
High-roller
 
doreto's Avatar
 
Join Date: Aug 2010
Posts: 1,714
Reputation: 118
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Good job Michael. Here are few of mine suggestions:
  • IsYouTubeVideoPlaying - self explain return true or false
  • GetLengthOfVideo - return in seconds length of video
  • GetVideoTitle - return the name of video
doreto is offline   Reply With Quote
Old 07/07/2014, 10:36 PM   #17
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 3,040
Reputation: 1001
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Quote:
Originally Posted by doreto View Post
Good job Michael. Here are few of mine suggestions:
  • IsYouTubeVideoPlaying - self explain return true or false
  • GetLengthOfVideo - return in seconds length of video
  • GetVideoTitle - return the name of video
Sweet ! Nice idea's. However, GetLengthOfVideo and GetVideoTitle, do you mean from the current song that's playing or not ?
__________________
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 08/07/2014, 06:36 PM   #18
K9IsGodly
Huge Clucker
 
K9IsGodly's Avatar
 
Join Date: Dec 2013
Location: Chicago Illinois
Posts: 245
Reputation: 16
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

I am getting An Error has occurred: 6 for these commands when I use them in game. They compile fine and all so I don't see what this means. Was hoping you could help.

Code:
CMD:playsong(playerid, params[])
{
    new ylink[50];
    if(sscanf(params,"s[50]",ylink)) return SendClientMessage(playerid, -1, "/playsong [Youtube URL]");
    if(strlen(ylink) > 50) return SendClientMessage(playerid, -1, "That link is too long!");
    PlayYoutubeVideoForPlayer(playerid,ylink);
    return 1;
}

CMD:adminsong(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 6)
	{
	new ylink[50];
    	if(sscanf(params,"s[50]",ylink)) return SendClientMessage(playerid, -1, "/adminsong [Youtube URL]");
    	if(strlen(ylink) > 50) return SendClientMessage(playerid, -1, "That link is too long!");
    	for(new i = 0; i != MAX_PLAYERS; ++i)
	{
    		if(IsPlayerConnected(i))
    		{
    	   		PlayYoutubeVideoForPlayer(i,ylink);
    		}
		return 1;
	}
	else
	{
	    SendClientMessage(playerid, -1, "You are not a high enough level administrator to use this command!");
	}
	return 1;
}
__________________


Trying to get better with Pawn

Last edited by K9IsGodly; 09/07/2014 at 04:03 AM.
K9IsGodly is offline   Reply With Quote
Old 09/07/2014, 01:16 PM   #19
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 3,040
Reputation: 1001
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Quote:
Originally Posted by doreto View Post
Good job Michael. Here are few of mine suggestions:
  • IsYouTubeVideoPlaying - self explain return true or false
  • GetLengthOfVideo - return in seconds length of video
  • GetVideoTitle - return the name of video
#updated2.0

Quote:
Originally Posted by K9IsGodly View Post
I am getting An Error has occurred: 6 for these commands when I use them in game. They compile fine and all so I don't see what this means. Was hoping you could help.
It's not your code but it's something with the API. On certain songs it does a redirect but I don't know the reason why it does that. Maybe it does check if the video has copyright or not ...

Your solution is: find another video of that song. Maybe then it'll work.
__________________
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 09/07/2014, 01:49 PM   #20
Battlezone
Gangsta
 
Battlezone's Avatar
 
Join Date: Aug 2013
Posts: 832
Reputation: 134
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Quote:
Originally Posted by Admigo View Post
Does all youtube links work like copyrighted music?
No, it certainly won't, because youtube is directly steraming data to you, it would work only if youtube transfers data to another server located in a location where the video is not blocked, and that server streams the song to you..
__________________
Battlezone 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] Youtube Streamer usrb1n Includes 109 09/07/2016 09:25 PM
[Include] Youtube Streamer Nightmare[TR] Includes 29 22/04/2013 06:42 PM
Youtube Streamer Help sciman001 Scripting Help 20 29/06/2012 05:57 AM
need a simple object streamer luckie12 Help Archive 2 29/04/2009 04:43 PM


All times are GMT. The time now is 07:08 PM.


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