2019-04-28, 09:14 AM
(This post was last modified: 2019-04-30, 07:12 PM by michael@belgium.)
The samp forum thread is litteraly unreadable.
[MV]_Youtube
An advanced Youtube streamer where you can have playlists and stream youtube video's. 1 video can be played with 1 line of code.
Functions
Installation
or download it manually and
Configuration
Create your own Youtube-to-mp3 api and use the include with it
https://github.com/MichaelBelgium/Youtube-to-mp3-API
[MV]_Youtube
An advanced Youtube streamer where you can have playlists and stream youtube video's. 1 video can be played with 1 line of code.
Functions
Code:
native PlayYoutubeVideoFor(url[], playfor = INVALID_PLAYER_ID, playlist = INVALID_PLAYLIST_ID, bool:usepos = false, Float:distance = 50.0)
-> returns a youtubeid
native StopYoutubeVideo(youtubeid)
native IsValidYoutubeURL(string[])
native IsYouTubeVideoPlaying(youtubeid)
native GetVideoDuration(youtubeid)
native GetVideoTitle(youtubeid)
native GetVideoLink(youtubeid)
native GetVideoStreamLink(youtubeid)
native GetVideoTarget(youtubeid)
native CreatePlaylist(name[])
-> returns a playlistid
native RemovePlaylist(playlistid)
native GetPlaylistName(playlistid)
native GetPlaylistSongs(playlistid)
native GetPlaylistSongsCount(playlistid)
native GetPlaylistFromVideo(youtubeid)
native SearchYoutubeVideos(playerid, searchquery[])
public OnYoutubeSearch(playerid)
public OnYoutubeVideoStart(youtubeid)
public OnYoutubeVideoFinished(youtubeid)
public OnMVYoutubeError(youtubeid, message[])
public OnPlaylistAddEntry(playlistid, youtubeid)
public OnPlaylistFinished(playlistid)
Installation
Code:
sampctl package install MichaelBelgium/MV_Youtube
or download it manually and
Code:
#include <MV_Youtube>
Configuration
Create your own Youtube-to-mp3 api and use the include with it
https://github.com/MichaelBelgium/Youtube-to-mp3-API