Unity Issue Tracker - "AVFoundationVideoMedia error while reading” error is thrown when streaming from a URL with a signed token in VideoPlayer
Fixed
UUM-86076
"AVFoundationVideoMedia error while reading” error is thrown when streaming from a URL with a signed token in VideoPlayer
Unity: Video
Open
2022.2.X
2022.2.0a16 onwards
Fixed
6.2.X
6.1.X
6.0.X
2022.3.X
Improved the Video Player's ingestion of URLs. The Video Player now better handles percent-encoded characters in URLs.
Reproduction steps:
1. Open the user’s attached “repro” project
2. Open the “Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
4. Observe the Game View
Expected result: A video is displayed
Actual result: A "AVFoundationVideoMedia error while reading” error is thrown
Reproducible on: MacOS 14.6.1 Intel, M1 (user’s)
Not reproducible on: No other environment tested
Notes:
Full error:
”AVFoundationVideoMedia error while reading <<your URL>> Context: AVFoundationVideoMedia::OpenForRead found no video tracks Error details: <Empty>”
Error “VideoPlayer cannot play url : <<your URL> Cannot read file.” is also thrown
Prioritise and Follow this issue
Have a workaround or additional info about this issue?