SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 09/07/2014, 02:16 PM   #21
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,453
Reputation: 413
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

So only one video can play at a time? Going to test it now, anyhow.

EDIT: Not working for me, I get this error:
Abagail is offline   Reply With Quote
Old 09/07/2014, 02:40 PM   #22
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

Quote:
Originally Posted by Abagail View Post
So only one video can play at a time? Going to test it now, anyhow.

EDIT: Not working for me, I get this error:
It seems that a LOT of youtube videos will give you this error. It's not on your side it's the API he said, so just keep trying different links. I've only found a couple of songs that work unfortunately.
__________________


Trying to get better with Pawn
K9IsGodly is offline   Reply With Quote
Old 09/07/2014, 03:01 PM   #23
Smileys
Huge Clucker
 
Smileys's Avatar
 
Join Date: Dec 2013
Location: Home.
Posts: 399
Reputation: 31
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

I must say this is pretty cool, been waiting forever for OnAudioStreamFinish or something alike

for v3.0 would be cool to see something like

PlayYoutubeVideoAt( url, time ); which will start the video at the given time, for example I input as time 60, it'll start the vid at 1 minute, means it skips the first 60 sec.

and a function to get the time the current song is playing would be cool.
Smileys is offline   Reply With Quote
Old 20/08/2015, 05:46 PM   #24
ExTaZZ69
Big Clucker
 
ExTaZZ69's Avatar
 
Join Date: Mar 2015
Location: Romania
Posts: 142
Reputation: 17
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

The lenght of the audio streamed url is too long. Use tinyurl.com to make it shorter.
OFF: Sorry for the bump
ExTaZZ69 is online now   Reply With Quote
Old 20/08/2015, 06:55 PM   #25
Swedky
Banned
 
Join Date: Jun 2013
Location: Argentina.
Posts: 2,099
Reputation: 827
Default Respuesta: [MV]_Youtube | Simple but yet useful youtube streamer

Well, this will works for one player only, I guess.
Swedky is offline   Reply With Quote
Old 21/08/2015, 09:54 PM   #26
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,867
Reputation: 570
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Quote:
Originally Posted by ExTaZZ69 View Post
The lenght of the audio streamed url is too long. Use tinyurl.com to make it shorter.
OFF: Sorry for the bump
No it's definitely not too long. Youtube video url's are always the same length and you only add it to "youtubeinmp3.com/fetch/?api=advanced&video=".

Quote:
Originally Posted by EnzoMetlc View Post
Well, this will works for one player only, I guess.
No, you can either loop through and do the function for each player or you can even go in the code and change to to PlayAudioStreamForAll (i.e. loop through all players there and do PlayAudioStreamForPlayer instead of going through the http response crap again.).
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 22/08/2015, 09:41 PM   #27
ExTaZZ69
Big Clucker
 
ExTaZZ69's Avatar
 
Join Date: Mar 2015
Location: Romania
Posts: 142
Reputation: 17
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Quote:
Originally Posted by Crayder View Post
No it's definitely not too long. Youtube video url's are always the same length and you only add it to "youtubeinmp3.com/fetch/?api=advanced&video=".

No, you can either loop through and do the function for each player or you can even go in the code and change to to PlayAudioStreamForAll (i.e. loop through all players there and do PlayAudioStreamForPlayer instead of going through the http response crap again.).
Look at this link:
"http://youtubeinmp3.com/download/get/?i=qN9nPGOHHKk4jOnqUO4BcZphePsOls5tzSql1FLovDJ%2B8 IYnwTx%2FHg5StDVhEXPbwc1aQqzCDJUgf4MwfAY2qw%3D%3D" . It have 136 characters.

(obtained from "http://youtubeinmp3.com/fetch/?api=advanced&video=https://www.youtube.com/watch?v=cHHLHGNpCSA")
ExTaZZ69 is online now   Reply With Quote
Old 22/08/2015, 10:14 PM   #28
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,867
Reputation: 570
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Quote:
Originally Posted by ExTaZZ69 View Post
Look at this link:
"http://youtubeinmp3.com/download/get/?i=qN9nPGOHHKk4jOnqUO4BcZphePsOls5tzSql1FLovDJ%2B8 IYnwTx%2FHg5StDVhEXPbwc1aQqzCDJUgf4MwfAY2qw%3D%3D" . It have 136 characters.

(obtained from "http://youtubeinmp3.com/fetch/?api=advanced&video=https://www.youtube.com/watch?v=cHHLHGNpCSA")
Have you tested it?
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 23/08/2015, 11:04 AM   #29
ExTaZZ69
Big Clucker
 
ExTaZZ69's Avatar
 
Join Date: Mar 2015
Location: Romania
Posts: 142
Reputation: 17
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Quote:
Originally Posted by Crayder View Post
Have you tested it?
Yes. I wanted to make a command like: /stream [url] and it didn't work. After i converted this command to dialog (DIALOG_STYLE_INPUT) and as well, it didn't work. I think the problem is the input length:
- 128 for the dialog
- 144 for the chat bubble (including the command);
The url length is 136 characters as i said in my previous post.
Anyway a shorter link is better. I modified this include to resend another HTTP request to tiny.com and it works very well.
ExTaZZ69 is online now   Reply With Quote
Old 23/08/2015, 03:04 PM   #30
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,867
Reputation: 570
Default Re: [MV]_Youtube | Simple but yet useful youtube streamer

Quote:
Originally Posted by ExTaZZ69 View Post
Yes. I wanted to make a command like: /stream [url] and it didn't work. After i converted this command to dialog (DIALOG_STYLE_INPUT) and as well, it didn't work. I think the problem is the input length:
- 128 for the dialog
- 144 for the chat bubble (including the command);
The url length is 136 characters as i said in my previous post.
Anyway a shorter link is better. I modified this include to resend another HTTP request to tiny.com and it works very well.
I don't think you're using it right... The only thing you need to give it IG is the Youtube URL. It works fine.
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder 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 05:04 PM.


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