1.通用函数
load(): Loads the media file and prepares it for playback. Normally does not need to be called unless the element itself is dynamically created. Useful for loading in advance of actual playback.
play(): Loads (if necessary) and plays the media file. Plays fromthe beginning unless the media is already paused at another position.
pause(): Pauses playback if currently active.
canPlayType(type): Tests to see whether the video element can play a hypothetical file of the given MIME type.
canPlayType(type)可以检测浏览器对媒体文件格式的支持性,如:
var supportsFooVideo = !!(document.createElement('video').canPlayType(‘ fooType’));

 

相关文章:

  • 2022-02-09
  • 2021-10-05
  • 2021-08-08
  • 2021-10-10
  • 2021-11-15
  • 2021-07-06
  • 2022-03-03
  • 2021-11-21
猜你喜欢
  • 2021-12-14
  • 2022-02-05
  • 2021-10-15
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案