HaarigerHarald / android-youtubeExtractor

Deprecated: Android based YouTube URL extractor and downloader
Other
877 stars 304 forks source link

get_video_info not providing hls #191

Open lortspogi opened 3 years ago

lortspogi commented 3 years ago

Any live that I'm playing is there is not hlsManifestUrl only dashManifestUrl. Any suggestions what parameter should I add?.

vikashbhr commented 2 years ago

In getStreamUrl() method of YouTubeExtractor.java add these line of code :

` if (streamingData.has("dashManifestUrl")) { dashManifestUrl = streamingData.getString("dashManifestUrl"); }

if (streamingData.has("hlsManifestUrl")) { hlsManifestUrl = streamingData.getString("hlsManifestUrl"); } ` and use hlsManifestUrl to play live video. It will fix your issue.