Black texture after seek operation in video

Fixed Issue #10014296


Dimcho B.
Nov 30, 2016
This issue is public.
Found in
  • Microsoft Edge
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:
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):


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.


    • Hey Rico,

      is this bug still being looked into?


    • Microsoft Edge Team

      Changed Assigned To from “Rico M.” to “Rafael C.”

      Changed Status to “Fixed”

    • Hello,

      Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge and available in Insider Preview build 17046.

      Best Wishes,
      The MS Edge Team

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

    Sign in