在线手册

  • prop video currentsrc

    ... /jsref/movie.mp4 Try it yourself » Definition and Usage The currentSrc property returns the URL of the current video. If no video is set, an empty string is returned. Note: This property is read-only. Tip: Use the src property to ...

  • prop video defaultmuted

    ... ;).defaultMuted = true; Try it yourself » Definition and Usage The defaultMuted property sets or returns whether the video should be muted by default. Setting this property will only change the default muted state, not the current ...

  • prop video networkstate

    ... : var x = document.getElementById("myVideo").networkState; The result of x could be: 1  // The video is active and has selected a resource, but is not using the network Try it yourself » Definition and Usage ...

  • prop video poster

    ... downloading, or until the user hits the play button. If this is not included, the first frame of the video will be used instead. Browser Support The poster property is supported in all major browsers. Note: Internet Explorer 8 ...

  • met video addtexttrack

    ... canPlayType() 方法 HTML DOM Video load() 方法 → Video addTextTrack() 方法 Video 对象 实例 向视频添加一个新的文本轨道: var x = document.getElementById("myVideo");var y = x.addTextTrack("caption"); y.addCue(new TextTrackCue("Test ...

  • met video load

    ... addTextTrack() 方法 HTML DOM Video volume 属性 → Video load() 方法 Video 对象 实例 更改视频资源,并重新载入视频: document.getElementById("mp4_src").src = "movie.mp4"; document.getElementById("ogg_src").src = "movie.ogg"; document ...

  • prop video audiotracks

    ← HTML DOM Video paused 属性 HTML DOM Video autoplay 属性 → Video audioTracks 属性 Video 对象 实例 获得可用音轨的数量: var x = document.getElementById("myVideo").audioTracks.length; 尝试一下 » 定义和用法 audioTracks 属性返回 ...

  • prop video buffered

    ... autoplay 属性 HTML DOM Video controller 属性 → Video buffered 属性 Video 对象 实例 获得视频的第一段缓冲范围(部分),以秒计: var x = document.getElementById("myVideo");document.getElementById("demo").innerHTML = "Start: " + x.buffered.start ...

  • prop video currenttime

    ... currentSrc 属性 HTML DOM Video defaultMuted 属性 → Video currentTime 属性 Video 对象 实例 将时间位置设置为 5 秒: document.getElementById("myVideo").currentTime = 5; 尝试一下 » 定义和用法 currentTime 属性设置或返回视频播放的当前位置(以秒计)。 当设置该属性时, ...

  • prop video duration

    ... defaultPlaybackRate 属性 HTML DOM Video ended 属性 → Video duration 属性 Video 对象 实例 获得当前视频的长度: var x = document.getElementById("myVideo").duration; x 输出结果为: 12.612 尝试一下 » 定义和用法 duration 属性返回当前视频的长度,以秒计 ...

推广服务(新)
最新文章