Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2019.4.X, 2020.3.X, 2021.1.X

Votes

0

Found in

2018.4

2019.4

2020.2

2021.1

2021.2

2021.2.0a6

Issue ID

1318270

Regression

No

Calling VideoPlayer.Prepare and VideoPlayer.StepForward produces a frame on a Render Texture

Video

-

Reproduction steps:
1. Open attached project "videoplayer" and load Scene "SampleScene"
2. Enter Play Mode
3. Click "Prepare" and "StepForward" in the Game view

Expected result: No frames show up in the Game View
Actual result: A new frame gets produced every time "StepForward" is pressed

Reproducible with: 2018.4.32f1, 2019.4.21f1, 2020.2.7f1, 2021.1.0b8, 2021.2.0a6
Could not test with: 2021.2.0a7 (UI breaks and starts glitching the Game View)

Notes:
- Comment from the developers:
Unless VideoPlayer.Play() or VideoPlayer.Pause() have been called, there should be no frame produced ever. So any seek that is done beforehand, whether VideoPlayer.Prepare has been called or not, should not put new content in the RenderTexture. This is the case when seeking by setting VideoPlayer.frame or VideoPlayer.time, but not with VideoPlayer.StepForward(). The fact that the frame shows up before calling VideoPlayer.Play() is not as per requirements.
- Video of the reproduction is attached

  1. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0a10

    As per design, VideoPlayer no longer causes frames to be produced before Pause() or Play() have been called. The VideoPlayer.clockTime value does change, and this will cause the new time to be used when starting playback, but the target (camera/texture/renderer) will not be updated.

  2. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.2f1

  3. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.14f1

  4. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.29f1

Comments (1)

  1. shabdydv27

    May 24, 2021 11:28

    If your time is not passing then you can play this sidpro-65f90.web.app game and this game will start on one click.

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.