ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Can we play the YouTube Link into the Exoplayer?

Open Bhavdip opened this issue 10 years ago • 1 comments

Hello, I have successfully integrated the exoplayer into our application. We are able to play the HLS video (.m3u8) file which uploaded over remote server. Now we have some video links that uploaded over the youtube. Can I play YouTube link into exoplayer by enabling the Type_DASH?

Thanks

Bhavdip avatar Feb 22 '16 12:02 Bhavdip

The short answer is: No.

You can play anything to which you have a direct URL to the media. YouTube don't expose direct URLs, so you'd have to use their player API instead. Of course, you could host DASH content yourself, as you're doing for HLS, which would provide you with the direct URLs you need.

ojw28 avatar Feb 22 '16 12:02 ojw28