Include to allow you reproduce an youtube url
Total downloads | Latest release |
---|---|
|
Definition | Action |
---|---|
YOUTUBE_USE_TEXTDRAW | Active the textdraw info with name of stream see |
USE_REGEX | Active the function IsValidYoutubeUrl |
- IsValidYoutubeUrl
- ConvertYoutubeUrl
- PlayYoutubeStreamForPlayer
- StopYoutubeStreamForPlayer
- GetYoutubeStreamTitle
- GetYoutubeStreamLen
- GetYoutubeStreamPos
- GetYoutubeStreamPosX
- GetYoutubeStreamPosY
- GetYoutubeStreamPosZ
- GetYoutubeStreamDistance
- IsYoutubeStreamUsePos
Called when youtube url an played.
Parameters:
playerid
: The playeridtitle
: The title of url(if invalid \0)len
: The length of url(if invalid 0)response
: The response of urlResponse codes:
1 Sucess
-1 Invalid url
-2 Invalid page
Called when youtube url as finished.
- Parameters:
playerid
: The playeridtitle
: The title of urllen
: The length of url
Determines if valid youtube url.
- Parameters:
url
: The url- Returns:
- True if is a valid url, false not.
Converts an youtu.be url to youtube.com
- Parameters:
Url
: The url to convertsize
: The size- Returns: True on convert have sucess, false not.
Play an youtube 'audio stream' for a player.
- Parameters:
playerid
: The ID of the player to play the audio for.url
: The url to play.posX
: The X position at which to play the audio. Default 0.0. Has no effect unless usepos is set to 1.posY
: The Y position at which to play the audio. Default 0.0. Has no effect unless usepos is set to 1.posZ
: The Z position at which to play the audio. Default 0.0. Has no effect unless usepos is set to 1.distance
: The distance over which the audio will be heard. Has no effect unless usepos is set to 1.usepos
: Use the positions and distance specified. Default disabled (0).- Returns:
- True on sucess, or false on failure. if USE_REGEX active is more efficient
Stop an youtube 'audio stream' for a player.
- Parameters:
playerid
: The ID of the player to stop the audio for.- Returns:
- True on sucess, or false on failure.
Gets the youtube stream title.
- Parameters:
playerid
: The playeriddest
: The destinationsize
: The size- Returns:
- 1 on sucess, 0 on fails
Gets the youtube stream length.
- Parameters:
playerid
: The playerid- Returns:
- The length of stream
Gets the youtube stream position.
- Parameters:
playerid
: The playeridx
: The x position passed by referencey
: The y position passed by referencez
: The z position passed by reference- Returns:
- 1 on sucess, 0 failure
Gets the youtube stream position x.
- Parameters:
playerid
: The playerid- Returns:
- The position x
Gets the youtube stream position y.
- Parameters:
playerid
: The playerid- Returns:
- The position y
Gets the youtube stream position z.
- Parameters:
playerid
: The playerid- Returns:
- The position z
Gets the youtube stream distance.
- Parameters:
playerid
: The playerid- Returns:
- The stream distance
Determines if youtube stream use position.
- Parameters:
playerid
: The playerid- Returns:
- The usepos