derhuerst/play-on-apple-tv

document how to find out & play Youtube HLS URLs

Open

#3 opened on Jul 28, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (6 forks)github user discovery
documentationhelp wanted

Repository metrics

Stars
 (26 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Sending a YouTube video URL directly to an Apple TV (3rd gen) fails.

You can let the Apple TV play an .mp4 URL just fine (and get it via youtube-dl --get-url -f format-id-here url-here), but in order to let the Apple TV choose video quality, it needs an HLS URL; This works via a periodically re-fetched .m3u8 URL containing links to video chunks in several qualities.

The problem is finding out the HLS URL of a non-live-stream Youtube video. I've tried, but failed.

Contributor guide