Fabián Cañas ⎷⃣ Profile picture
Ex-Twitter. he/him/they/them 🇨🇷🤖 @fcanas@mastodon.social
Sep 16, 2020 15 tweets 3 min read
Time for some video playback tips on iOS with AVFoundation.

Take these with a grain of salt. Behavior depends on media type, device, and evolves with new OS versions. A fair bit here is focused on HLS, but some suggestions are broadly applicable. 1. Create an AVURLAsset first. Don’t use a URL to initialize a AVPlayer or AVPlayerItem directly. Do this well in advance of when you want playback to start.