If you're having trouble getting video tracks from AVURLAsset for HLS videos (.m3u8 format) in AVPlayer, here are some possible reasons and solutions:
Possible Issues: HLS Video Track Handling: Unlike MP4 files, HLS streams don’t always expose video tracks in the same way. Protected/Encrypted Content: If the stream is DRM-protected, you may not be able to access tracks directly. Network or CORS Issues: Make sure the .m3u8 file is accessible and properly formatted. Incorrect Asset Loading: AVURLAsset needs to be loaded asynchronously before accessing tracks.