Search Issue Tracker
Fixed in 5.0.X
Votes
0
Found in
4.0.1f2
Issue ID
521497
Regression
No
Video doesn't play if the orientation is changed in the OnApplicationPause method
Video sometimes doesn't play if the orientation is changed in the script right before calling Handheld.PlayFullScreenMovie. This looks like a racing condition, because it's not reproducible every time. This is reproducible on devices with Ice Cream Sandwich and Jelly Bean Android versions. Not reproducible on Gingerbread devices.
Tested devices:
Samsung Galaxy S with Android 2.3.3 (not reproducible)
Google Galaxy Nexus with Android 4.0.4
Samsung Galaxy S3 with Android 4.1.1
Unity Versions:
4.0.1f2 (9bb580cddf70)
4.2.0a1 (e507cb846753)
A workaround would be to make a dedicated scene for playing the video. In that scene in the "void Start()" method the orientation could be changed to autorotation or landscape. Then in the "void Update()" method the movie could be played by calling Handheld.PlayFullScreenMovie and then when the video ends on the next update the orientation could be changed back to portrait and the previous scene could be loaded.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Add comment