Seems like all my questions were answered in https://developer.apple.com/videos/play/wwdc2020/10011
Basically, audio and video tracks are moved forward by ~10seconds to account for audio priming, and although audio timing is started earlier, HLS waits for the first track of video to start before starting it’s presentation clock.
Post
Replies
Boosts
Views
Activity
You can check for the 5.3 compiler if your goal is to continue using older versions of the SDK (and thus Xcode), but still add functionality that will get enabled When re-compiled with the newer SDK:
#if compiler(>=5.3)
if @available(macOS 10.16, *) {
// use some new API
}
#endif
If you want dynamic checks though, NSClassFromString() is probably your best bet, especially when developing from an SDK that isn’t in the released version of Xcode 😔
Thank you for clarifying! Up until now, I was hard coding it in out other players, but since we control the whole pipeline for our media, it’s good to know that we can simplify things.