Search Issue Tracker
Fixed in 2017.2.0f3
Votes
58
Found in
5.6.0p4
Issue ID
909477
Regression
No
VideoPlayer.Play() still has a delay after using VideoPlayer.Prepare()
Steps to reproduce:
1. Download and open the attached project
2. Enter Play mode
Expected result: videos are played seamlessly due to being prepared
Actual result: videos still have a delay when they are started to play, even if they were prepared
Reproduced on 5.6.0p4, 5.6.1p2, 2017.1.0b4, 2017.1.0b8, 2017.2.0a1
Feature introduced in 5.6
Notes:
-User suggests ideally having a queue of videos to be prepared
-The issue appears on Android platform too
Re-encoding the videos in the Unity inspector should fix any remaining issues.
Comments (29)
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
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
t-schulz
Oct 13, 2017 08:30
The videoplayer prepare blocks my app for more than 3 seconds on an OnePlus 5.... thats unbelievable... unity 5.6.3f1 and 2017.1
hurleybird
Oct 11, 2017 01:30
Hopefully they can finally put this one to rest sooner than later.
pratham2504
Oct 01, 2017 17:53
The problem is still prevailing guys. Please help with a solution.
The videos seems to be working fine when played with a VideoClip hosted locally, but when a URL hosted on the cloud is played it takes forever the prepare and play.
DGordon
Sep 27, 2017 17:51
How is this considered acceptable to hitch the entire app every time a video needs to be prepared? Sheesh.
Tibor-Udvari
Jul 29, 2017 21:44
I'm also getting this when trying to loop videos. I'm making an AR app that puts 1-2 second looping videos on AR targets, getting this 0.2 second delay is not helping my experience. I'm getting this on iOS but also visible on the unity editor.
ogs091
Jul 14, 2017 00:36
I get this delay on Android. The entire app hangs for 4 or 5 seconds. Since you can't run videoplayer.Prepare() in a background thread, I'm not sure how to work around this.
Mitnainartinarian
Jun 04, 2017 18:41
Just an addition to my previous comment. I'm only getting significant delays on Android. On iOS the delays are much shorter and more manageable.
Mitnainartinarian
Jun 03, 2017 19:57
I get this delay as well, but also get a similar delay when VideoPlayer.Stop() is called.
wesloc
Jun 02, 2017 17:27
We were told that this issue is also the reason that we see temporary game freeze when calling Prepare() on windows platform.
Prepare() should not block the game loop. This is very important when trying to use video player to do video preview(loading thumbnail).