[Include] RaFaeL's Streaming Streamer
#1

RaFaeL's Streaming Streamer
currect version: 1.2

Hello all sa-mp programmers!
After hard work on this streamer I very happy to release the include.

Explain
The streamer allows you to play more than stream, It's good for all gamemodes.
Very basic example is dj's party, every dj at her point with her music.
Another example is Road Playlist(as showes in the video).
The using of the streamer is very simple for you.

Details
The abilities of the streamer is very good, alows you to per player multi play or global.
Now you can play many streams at the same time!

Natives
Global:
pawn Код:
native PlayDynamicStream(url[], playerid = INVALID_PLAYER_ID, Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0);
native StopDynamicStream(streamid);
native GetStreamDetails(streamid, url[], &playerid, &Float:PosX, &Float:PosY, &Float:PosZ, &Float:distance);
natice CountDynamicStreams();
Player:
pawn Код:
native IsAnyStreamForPlayer(playerid);
native IsStreamForPlayer(playerid, streamid);
native GetPlayerStreaming(playerid);
native TooglePlayerStreaming(playerid, streamid = INVALID_STREAM_ID, bool:status);
native PlayerToogleStatus(playerid, streamid = INVALID_STREAM_ID);
native ToogleGlobalStream(streamid = INVALID_STREAM_ID, bool:status);
Valid:
pawn Код:
native IsValidStream(streamid);
Callback's:
pawn Код:
forward OnDynamicStreamIn(playerid, streamid);
forward OnDynamicStreamOut(playerid, streamid);
Enum:
pawn Код:
enum StreamInfo {
    surl[128],
    sUser,
    bool:uPosXYZ,
    Float:sposX,
    Float:sposY,
    Float:sposZ,
    Float:sdistance,
    bool:uDisabled[MAX_PLAYERS],
    bool:Disabled
};
Videos
Total 5 videos - 5 Tests that i made!
[ame]http://www.youtube.com/watch?v=5_d1oaZ8kds[/ame]
[ame]http://www.youtube.com/watch?v=iKc4FVonMsQ[/ame]
[ame]http://www.youtube.com/watch?v=fP1nDKiwt-s[/ame]
[ame]http://www.youtube.com/watch?v=ZMQ87AiSwPo[/ame]
[ame]http://www.youtube.com/watch?v=m1-IYQsr8sc[/ame]

Credits
Me (RaFaeL): Building the streamer.
Incognito: Streamer functions names
Cpstreamer(Creator): Example how to build streamer

Download
v1.2:
PasteBin: http://pastebin.com/mbFA5gLi

v1.1:
PasteBin: http://pastebin.com/JMmB6QjF

Install
* download the include and save as ststreamer.inc
* Include the inc file in you script:
pawn Код:
#include <ststreamer>
* To change the settings add this defines before the including:
pawn Код:
#define STREAM_RATE        100        // Time to update the streamer - in milseconds like 1000 (1sec) or 60000(1min)
#define MAX_STREAMS        90         // Maximum global streaming
What's new?
# 10/10/2012 (v1.2):
Quote:

* Fixed some bugs at the system
* Improved script speed
* Added TooglePlayerStreaming
* Added PlayerToogleStatus
* Added ToogleGlobalStream
* Fixed IsValidStream

Bugs & Suggestion
Bugs list:
* If player radio volume set to 0 the callback's are called
Suggestion List:
none.

If you have any suggestion please leave a commant!
If this helped you please leave a positive comment.

Enjoy!
Reply
#2

Updated to new version!
Reply
#3

ORIGINAL POST What is different in this from other streaming includes and streamer include ?

Edit ^ That was a fail guys i am very sorry for that really big fail.

I am still laughing.
Reply
#4

Quote:
Originally Posted by Glint
Посмотреть сообщение
What is different in this from other streaming includes and streamer include ?
This one streams audio duh, should've at least read the thread before posting
Reply
#5

Quote:
Originally Posted by Glint
Посмотреть сообщение
What is different in this from other streaming includes and streamer include ?
The stream include is to create playlist etc... this include is to play many stations in one time..
Reply
#6

Sorry guys i edited my post check it.
Reply
#7

Quote:
Originally Posted by Glint
Посмотреть сообщение
Sorry guys i edited my post check it.
Ok, Any other commants?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)