Video does not play back after controls are turned off

Issue #12366645 • Assigned to Nishant N.

Details

Author
Tim H.
Created
Jun 16, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
40.15063
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Under specific circumstances, Edge fails to play videos after the video player’s controls have been removed through script. This issue is easy to see in this jsbin examphttp://jsbin.com/nisasof](http://jsbin.[http://jsbin.com/nisasof](http://jsbin.com/nisasof/edit?html,js,output).

The video may start working correctly after it has been cached… so clear your browser cache if needed.

To reproduce, take a video element with:

  1. preload="none"
  2. a poster url
  3. a child source element
  4. a controls attribute

Like this:

<video controls preload="none" 
   poster="https://dummyimage.com/320x200/000/fff&amp;text=Dummy+Poster">
   <source src="http://www.html5videoplayer.net/videos/toystory.mp4"/>
</video>

…and then remove the controls via script.

document.querySelector('video').removeAttribute('controls')

The video will not play as expected. Try clicking play through the context menu (right mouse click video) or through script:

document.querySelector('video').play()

The video will not play in Edge, but will in all other browsers including IE 11.

Also worth noting: the video will start playing correctly if you click play and open a new tab in Edge.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Venkat K.”

      Changed Assigned To from “Venkat K.” to “Nishant N.”

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

    Sign in