• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Library] [MV]_Youtube - Stream youtube video's and have playlists
#1
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.

[Image: oRnMo.jpg]

[Image: oRnNh.png]

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
[Image: GitHub-michaelbelgium-000000.svg?style=for-the-badge]

  Reply


Messages In This Thread
[MV]_Youtube - Stream youtube video's and have playlists - by michael@belgium - 2019-04-28, 09:14 AM

Forum Jump: