|
|
#41 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: England
Posts: 2,182
Reputation: 51
|
|
|
|
|
|
|
#42 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: Hong Kong, China
Posts: 1,659
Reputation: 123
|
I didn't use YouTube-mp3's API as my script is still in feature testing stage.
First of all go to http://www.youtube-mp3.org/, paste the video URL (http://www. youtube.com/watch?v=PKdzdXNy4Y4) into the interface and convert it. The link in the download button is the testing sound file. Then I use the filterscript in the plugin package, and change the PlaySoundUrlToStream code into pawn Code:
|
|
|
|
|
|
#43 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: England
Posts: 2,182
Reputation: 51
|
Quote:
|
|
|
|
|
|
|
#44 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: Hong Kong, China
Posts: 1,659
Reputation: 123
|
Directly download the converted audio file and save it to anywhere in your computer (I've just tested it on the server's directory), and then use PlaySoundFileToStream(absolute_path_to_your_audio_ file).
|
|
|
|
|
|
#45 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: England
Posts: 2,182
Reputation: 51
|
So something like PlaySoundFileToStream(dekstop/yourserver/mp3file) ?
|
|
|
|
|
|
#46 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: Hong Kong, China
Posts: 1,659
Reputation: 123
|
|
|
|
|
|
|
#47 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: England
Posts: 2,182
Reputation: 51
|
I don't understand on how I would write it..
|
|
|
|
|
|
#48 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: May 2011
Location: Russia, Vladivostok
Posts: 729
Reputation: 43
|
Îê. I got to reproduce the problem. The problem occurs when the CPU loaded highly. And only with URL's.
Not Enough CPU resources for encoder. It's flush previously recived data. Sorry, but i can't fix it. But I can add additional buffering function. It may help. |
|
|
|
|
|
#49 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: Hong Kong, China
Posts: 1,659
Reputation: 123
|
Download the filterscript in the plugin pack, and change all
pawn Code:
pawn Code:
Modified from the example script: pawn Code:
Quote:
Anyway, I'll have a try when you update it. |
|
|
|
|
|
|
#50 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jun 2011
Location: Varna, Bulgaria
Posts: 397
Reputation: 41
|
Damn nice!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| San Andreas Radio Station audio not working | Diego_Martinz | Client Support | 4 | 13/06/2012 01:55 PM |
| How do i play this radio station? | emokidx | Scripting Help | 3 | 19/02/2012 12:27 PM |
| Create connection to radio station | vection | Help Archive | 0 | 31/08/2010 11:47 AM |
| [HELP PL0X] Radio station. | tehroxor | Client Support | 7 | 11/02/2010 03:44 PM |