YoutubeVideoSample icon indicating copy to clipboard operation
YoutubeVideoSample copied to clipboard

How to play YouTube Vidoes directly via youtube videoID

Open ab5593 opened this issue 5 years ago • 1 comments

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..

ab5593 avatar Mar 16 '19 15:03 ab5593

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

mikaelzero avatar Mar 17 '19 03:03 mikaelzero