Videos no longer streaming with mediaelement.js in Chrome

后端 未结 3 931
耶瑟儿~
耶瑟儿~ 2021-02-15 10:53

Over the past few days, we noticed that our videos quit streaming using MediaElement.js Version 2.11.3 and Chrome Version 50.0.2661.94 (64-bit)

3条回答
  •  后悔当初
    2021-02-15 10:59

    That is because since Chrome 50 a play() call on a or an element returns a Promise. If playback succeeds, the Promise is fulfilled, and if playback fails, the Promise is rejected along with an error message explaining the failure.

    You can find some examples and more information here: https://developers.google.com/web/updates/2016/03/play-returns-promise?hl=en

提交回复
热议问题