My idea is for us to get a VideoService or YouTubeService that will let us add videos with ImageLabels.
ROBLOX *should* be able to do this as we already have HttpService and mobile video ads.
I think the methods in this 'YouTubeService" should be:
GetMonitorRefreshRate() -- Returns 1/30 or 1/60
GetFrames(video,number) -- Will return in image format (will have to get moderated, sorry) the frame from the video
GetVideoAsync(link) -- Will return the video in like a JSON table format of frames or something, idk.
GetAudioOfFrame(video,number) -- Will return in audio format (again, will get moderated) the current sound of the frame in the video.
The events should be:
OnVideoEnded -- Will fire when the video ends, as you can see by the name.
OnVIdeoStart -- Will fire when the video starts, as you can also see by the name.
OnVideoPause -- Optional, idc if they add this or not
OnVideoResume -- Same as the pausing event, idc about this one.
-- I made a little script to support this thread
--Suggestions, this OBVIOUSLY will NOT work
local Vid = Game:GetService("YouTubeService")
local Video = Vid:GetVideoAsync("link")
for i = 0,VIdeo:GetLength() do
wait(Vid:GetMonitorRefreshRate())
ImageLabel.Image = Video:GetFrames(i)
end
-- Post "SUPPORT" if you agree. |