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()

Video

-

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)

  1. 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

  2. hurleybird

    Oct 11, 2017 01:30

    Hopefully they can finally put this one to rest sooner than later.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. Mitnainartinarian

    Jun 03, 2017 19:57

    I get this delay as well, but also get a similar delay when VideoPlayer.Stop() is called.

  9. 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).

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.