[Include] ******* Streamer
#1

******* Streamer

Hi,i've fixed usrb1n's include,and i'm sharing with you.
Thanks to usrb1n for idea,but i didn't used anything from usrb1n.

I tried to make it with pawn,but i can't.So,i used php,your way goes like this; You->My Site(Adds JSON and crops link)->download link.

So,you're passing thru my site,if you want php page,just send me a pm.
Thanks to erorcun for php.


Usage:
pawn Code:
*******StreamForPlayer(playerid,"http://www.youtube.com/watch?v=My0HQ0QkGLQ"); // Starts the music for player
*******StreamForAll("http://www.youtube.com/watch?v=My0HQ0QkGLQ"); // Starts the music for all
*******StopStreamForPlayer(playerid); // Stops the music for player
*******StopStreamForAll(); // Stops the music for all
--Updated,functions changed for personal or anyone choosing.
http://pastebin.com/wjqNhsX7
PHP Side: http://pastebin.com/8KszzYGm
Reply
#2

The include isn't made by you.
Code:
******* Stream Function By Snakeman
Reply
#3

Quote:
Originally Posted by xkirill
View Post
The include isn't made by you.
Code:
******* Stream Function By Snakeman
Who's then?
Reply
#4

Hmm, I think your release don't crash on linux like usrb1n's?

If don't crash on linux ... great release !
Reply
#5

Quote:
Originally Posted by Edvin
View Post
Hmm, I think your release don't crash on linux like usrb1n's?

If don't crash on linux ... great release !
Well,i didn't tested on linux.But in windows,works perfect
Reply
#6

Quote:
Originally Posted by Nightmare[TR]
View Post
Who's then?
Guess.
Hint,i "quoted" him in code box.
Reply
#7

First of all thank you for this release
But i have a problem. How to use? I just copyed the code from Pastebin and compiled this to .inc?

Is this right?
Reply
#8

Quote:
Originally Posted by Timmeyable
View Post
First of all thank you for this release
But i have a problem. How to use? I just copyed the code from Pastebin and compiled this to .inc?

Is this right?
Include it in your gamemode then add somewhere (under a cmd , public , etc.) like this *******StreamForPlayer(playerid,"http://www.youtube.com/watch?v=My0HQ0QkGLQ"); // Just a sample
and it plays ( i think ) ...

eh , this could be done in a fs or in the gamemode, it has 30 lines so i wouldnt include this...
Reply
#9

Quote:
Originally Posted by Timmeyable
View Post
First of all thank you for this release
But i have a problem. How to use? I just copyed the code from Pastebin and compiled this to .inc?

Is this right?
No, you just save normal text .inc file, and put it in pwano/includes

and add in your GM #include <includefilenamehere>
Reply
#10

Ahh, thank you ddnbb.

But the stream doesnt work. I am to stupid xD
The server says: "Audio stream: http://element-samp.net/*******.php?videoid=5yv3y65QEdQ"
but i cant here something. Whats wrong?
Reply
#11

Nightmare[TR] it would be nice if you could share the "*******.php" file ,or send me it in pm
thanks
Reply
#12

Quote:
Originally Posted by xkirill
View Post
Guess.
Hint,i "quoted" him in code box.
Snakeman aka Nightmare
Quote:
Originally Posted by HuSs3n
View Post
Nightmare[TR] it would be nice if you could share the "*******.php" file ,or send me it in pm
thanks
That's it bro;
http://pastebin.com/8KszzYGm

Quote:
Originally Posted by Timmeyable
View Post
Ahh, thank you ddnbb.

But the stream doesnt work. I am to stupid xD
The server says: "Audio stream: http://element-samp.net/*******.php?videoid=5yv3y65QEdQ"
but i cant here something. Whats wrong?
Nothing is wrong there buddy,Due to right issues,******* converter can't convert video. If you try it at it's site,*******-mp3.org it says
****** Inc. doesn't want you to convert this video.
Please sign a petition to change their mind:
Support third party recording tools for *******

so,we only can wait.
Reply
#13

Quote:
Originally Posted by Nightmare[TR]
Посмотреть сообщение
******* Streamer

Hi,i've fixed usrb1n's include,and i'm sharing with you.
Thanks to usrb1n for idea,but i didn't used anything from usrb1n.

I tried to make it with pawn,but i can't.So,i used php,your way goes like this; You->My Site(Adds JSON and crops link)->download link.

So,you're passing thru my site,if you want php page,just send me a pm.
Thanks to erorcun for php.


Usage:
pawn Код:
*******StreamForPlayer(playerid,"http://www.youtube.com/watch?v=My0HQ0QkGLQ"); // Starts the music for player
*******StreamForAll("http://www.youtube.com/watch?v=My0HQ0QkGLQ"); // Starts the music for all
*******StopStreamForPlayer(playerid); // Stops the music for player
*******StopStreamForAll(); // Stops the music for all
--Updated,functions changed for personal or anyone choosing.
http://pastebin.com/wjqNhsX7
PHP Side: http://pastebin.com/8KszzYGm
It show's that its streamed but i cant hear anything?
Reply
#14

Quote:
Originally Posted by ddnbb
Посмотреть сообщение
It show's that its streamed but i cant hear anything?
Some videos doesn't stream.
Nothing is wrong there buddy,Due to right issues,******* converter can't convert video. If you try it at it's site,*******-mp3.org it says
****** Inc. doesn't want you to convert this video.
Please sign a petition to change their mind:
Support third party recording tools for *******

so,we only can wait.
Reply
#15

Quote:
Originally Posted by Nightmare[TR]
Посмотреть сообщение
Some videos doesn't stream.
Nothing is wrong there buddy,Due to right issues,******* converter can't convert video. If you try it at it's site,*******-mp3.org it says
****** Inc. doesn't want you to convert this video.
Please sign a petition to change their mind:
Support third party recording tools for *******

so,we only can wait.
That sucks man. Please info me when this is working again.
Reply
#16

Nice, Gьzelde Bu http:// yazdıktan sonra diğerleri yeşil oluyor ?
Reply
#17

Awesome
Reply
#18

Quote:
Originally Posted by Ahmet37100
Посмотреть сообщение
Nice, Gьzelde Bu http:// yazdıktan sonra diğerleri yeşil oluyor ?
" " tırnaklarına alman gerek.
pawn Код:
http://123
yerine
pawn Код:
"http://123"
yazacaksın.
Reply
#19

Tamam
Reply
#20

Nightmare, can you fix PHP Side ?
PHP Side returns h = PE html PUBLIC "-//W3C//DTD XHTM

I don't know why. The script worked fine, but now i get this...

//Edit. Ok. I see cURL have problem with getting content ;(
Don't know why.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)