Youtube live video url
Opened this issue · 4 comments
After added c=TVHTML5&cver=6.20180913 this parameter. Youtube recorded video is working fine but live video url not played.
if anyone solved this problem then share detail.
I'm having the same problem, live broadcast stops after 3secs even if you copy the url to your browser same behavior.
To found out, it is not detecting videoMeta.isLiveStream(), inside get_video_info hlsManifestUrl and also .m3u8 format is nowhere to be found.
private static final Pattern patHlsvp = Pattern.compile("hlsManifestUrl":"(.+?)(&|\z)");
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.
vikashbhr
@vikashbhr Please can You clarify more where to add these lines and how to get the live stream to play in Eexoplayer?
Thanks in advance!