Black texture after seek operation in video

Issue #10014296 • Assigned to Rico M.

Details

Author
Dimcho B.
Created
Nov 30, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 3 people

Sign in to watch or report this issue.

Steps to reproduce

We have a web app that is using video element as a source to WebGL texture.

The problem is that after seeking to some new time position the texture is very often empty (filled with black) for multiple frames. It seems that that the video decoder hasn’t caught up and the video frame bits are just not ready.

  • On Chrome and Safari, the browser just gives back the last ready video frame and there is never a black frame.
  • On Firefox we can avoid the black frame issue by checking video.HAVE_ENOUGH_DATA and avoid calls to texImage2D if the video is not ready.
  • Edge is the only major browser for which we have no solution

Another mitigation is to add some small delay right after ‘seeked’ event - but this is not bulletproof, it is machine and video file dependent and it doesn’t work well if there are many seek commands in short period of time.

I created a small test case that illustrate the issue: https://jsfiddle.net/kruslav/enLketLz/90/
You can observe the black screen occasionally when you click on the slider bar, but it almost guaranteed that you will see it if you start dragging the slider bar.

Note: this example has both the check against video.HAVE_ENOUGH_DATA and small delay of 50ms after ‘seeked’ event.

Anther example illustrating the problem (make sure you try to seek in the video on top):
http://flimshaw.github.io/Valiant360/

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

    • Thank you for the detailed repro, we will look into that.

      Best regards,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Assigned To to “Rick J.”

      Changed Assigned To to “Rico M.”

    • Hi Ibrahim,

      Is there any new development about this bug? We started receiving reports from customers on our side.

      Best,
      Dimcho

    You need to sign in to your Microsoft account to add a comment.

    Sign in