W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
解釋?zhuān)?swan.createVideoContext 的返回值
屬性名 | 說(shuō)明 |
---|---|
VideoContext.play | 播放 |
VideoContext.pause | 暫停 |
VideoContext.seek | 跳轉(zhuǎn)到指定位置(單位:s) |
VideoContext.sendDanmu | 發(fā)送彈幕 |
VideoContext.requestFullScreen | 按設(shè)置的視頻全屏方向進(jìn)入全屏 |
VideoContext.exitFullScreen | 退出全屏 |
VideoContext.showStatusBar | 顯示狀態(tài)欄 |
VideoContext.hideStatusBar | 隱藏狀態(tài)欄 |
VideoContext.stop | 停止播放視頻 |
VideoContext.playbackRate | 倍速播放視頻 |
<view class="wrap">
<video id="myVideo" enable-danmu="true" src="https://b.bdstatic.com/swan-temp/940fe716b0eaad38f47b209d61657490.mp4" rel="external nofollow" ></video>
<button type="primary" bindtap="play">play</button>
<button type="primary" bindtap="stop">stop</button>
<button type="primary" bindtap="pause">pause</button>
<button type="primary" bindtap="seek">seek</button>
<button type="primary" bindtap="sendDanmu">sendDanmu</button>
<button type="primary" bindtap="fullScreen">requestFullScreen</button>
<button type="primary" data-set="0.75" bindtap="playbackRate">點(diǎn)擊0.75倍速播放</button>
<button type="primary" data-set="1.0" bindtap="playbackRate">點(diǎn)擊1.0倍速播放</button>
<button type="primary" data-set="1.25" bindtap="playbackRate">點(diǎn)擊1.25倍速播放</button>
<button type="primary" data-set="1.5" bindtap="playbackRate">點(diǎn)擊1.5倍速播放</button>
<button type="primary" data-set="2.0" bindtap="playbackRate">點(diǎn)擊2.0倍速播放</button>
</view>
錯(cuò)誤碼 | 說(shuō)明 |
---|---|
202 |
解析失敗,請(qǐng)檢查參數(shù)是否正確 |
1001 |
執(zhí)行失敗 |
錯(cuò)誤碼 | 說(shuō)明 |
---|---|
202 |
解析失敗,請(qǐng)檢查參數(shù)是否正確 |
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: