YoutubeVideoSample
YoutubeVideoSample copied to clipboard
How to play YouTube Vidoes directly via youtube videoID
i just wanted to know is it possible to play youtube videos from youtube videoID instead of providing the direct link to the MP4 video file??
private void playVideo() {
mYouTuDraggingView.show();
// something like
mVideoView.setUp("https://youtube.com/watch?v=youTubeVideoID?raw=true");
mVideoView.setUp(songPlaying);
mVideoView.start();
MediaPlayerManager.instance().setScreenScale(ScaleType.SCALE_CENTER_CROP);
}
My requirement is to play videos directly from youtube and retain the functionalities of goMin();
, goMax();
, fullScreenChange();
methods of this awesome project..
I am sorry about the video player function. I just used someone else's libiary. You can replace other libraries with the specific player implementation. I don't have much research on the player's function. This libiary just provides a drag. Dynamic effect