Search Issue Tracker
Fixed
Fixed in 2022.3.59f1, 6000.1.0b8, 6000.2.0a2
Votes
9
Found in
2022.3.51f1
6000.0.25f1
6000.1.0a2
6000.2.0a1
Issue ID
UUM-86076
Regression
Yes
"AVFoundationVideoMedia error while reading” error is thrown when streaming from a URL with a signed token in VideoPlayer
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 with: 2022.2.0a16, 2022.3.51, 6000.0.25f1, 6000.1.0a2
Not reproducible with: 2021.3.45f1, 2022.2.0a15
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
Comments (4)
-
wbenjamin
Feb 26, 2025 09:41
Fixed in unity 6000 for versions 6000.1.x and 6000.2.x, but not for the only LTS version 6000.0.x. And despite this, the status of this bug is "Fixed". Why?
-
IIIupot
Feb 03, 2025 09:13
Not fixed in 6000.2 on ios for external links with a token.
https.....com/v0/b/some-project/o/video%2SomeVideo.mp4?alt=media&token=64a4f6f5-1230-4304-b250-f68efd7d73bc -
developerarreterra
Jan 30, 2025 08:38
Any ETA when it's in 2022.3.X ?
Because it's critical for our current update. -
verborghs-playit
Jan 23, 2025 13:24
is there a work around for the issue. Unescape a url before passing it to the videoplayer.url property seems to work, but does not work when a '+' is present.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Keywords on Material Variants aren't automatically saved when changed on original Material through Shader Graph
- Light Probes get baked when calling LightProbes.Tetrahedralize
- Shadows flicker and cause visual artifacts when modifying a GameObject's bounds using Swizzle (Y Mask) and Sine Time nodes
- [WebGL] Frame rate drops by 5-20 fps when moving cursor or touch input in the Player
- Light bleeds when using box shaped spotlight with specific Emission Range values
Resolution Note (fix version 6000.2.0a2):
Improved the Video Player's ingestion of URLs. The Video Player now better handles percent-encoded characters in URLs.