I am trying to play youtube video in exoplayer but here is some confusion I don\'t know what is DASH url, I have only real youtube url like \"https://www.youtube.com/watch
to play youtube video in exoplayer we can use this library
https://github.com/HaarigerHarald/android-youtubeExtractor
and simply get the url like this and then play in exoplyer
String youtubeLink = "http://youtube.com/watch?v=xxxx";
new YouTubeExtractor(this) {
@Override
public void onExtractionComplete(SparseArray ytFiles, VideoMeta vMeta) {
if (ytFiles != null) {
int itag = 22;
String downloadUrl = ytFiles.get(itag).getUrl();
}
}
}.extract(youtubeLink, true, true);