We are facing challenges in the YouTube player. HD videos stuffer and buffers even on fast internet. All videos that result from search "HD videos" are buffering.
Implementation how?
We get streaming URL by using extractor i.e. youtubeExtractor , youtube-dl, of any YouTube video then play using MD360Player . for example, https://www.youtube.com/watch?v=Zv11L-ZfrSg video streaming URL included in the yt-vd.html file. Almost the same behavior in HTML and Android player so you can try HTML video tag.
Check out HTML for observing behavior. Uncomment other URLs
A URL given at the bottom of the HTML page doesn't buffer like the first two URLs. The first two ULRs will buffer every 30-60 seconds.
Can you fix youtubeExtractor for unlimited bandwidth?
What we did so far:
- Choose lower 360 resolution, reduce the buffering frequency, normal videos are playing fine now.
- Try other open source java and Android-based URL extractors
- Try different youtube-dl options and flags, also try the original python-based youtube-dl
- Study the player buffering mechanics, which is fine. The server has some restrictions on buffering and bandwidth
- Search for official YouTube APIs to get streaming URL but they aren't offering.
- Find out one PHP-based downloader and grab a URL that doesn't buffer. Buffer a few times in the start compared to our solution. but this solution has some closed source code. And we discussed this involve server so maybe not be a viable solution because of the cost and dependency of another server. We don't know how this guy is extracting streaming URLs with unlimited bandwidth https://github.com/therealvk/DLvidHUT-Video-Downloader
Note: An adaptive streaming URL will be the best solution like YouTube Auto. URLs given in HTML will be expired.