摘要:之前對的標簽有過一陣子研究,主要用來判斷視頻文件在播放時事件觸發的順序。羅列了下實際有用的事件屬性元數據包括時長,尺寸以及文本軌道當前幀數據可用,可以播放當前及至少下一幀是可以播放的
之前對html的video標簽有過一陣子研究,主要用來判斷視頻文件在播放時事件觸發的順序。
羅列了下實際有用的事件屬性:
loadstart: happened after load() method. The UA begins looking for media data.
durationchange: get the duration info of the media
loadedmetadata: The UA has determined the duration and dimesion(元數據包括:時長,尺寸以及文本軌道)
loadeddata: 當前幀數據可用,for the first time
progress: The UA is fetching media data
canplay: 可以播放當前及至少下一幀是可以播放的, readyState is newly to HAVE_Future_DATA
canplaythrough: readyState is newly to HAVE_ENOUGH_DATA
play: paused is newly false, after()
pause: paused is newly true
playing: playback is ready to start after having been paused or delayed due to lack of media data(readyState is equal to or greater than HAVE_FUTURE_DATA)
abort: UA stops fetching media data before it is completely download but not due to an error
waiting: Playback has stopped because the next frame is not available but UA expects that frame to become avaiable in due course
suspend: UA is intentionally not fetching media data currently
文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。
轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/49576.html
摘要:中在安卓與實際應用中遇到的問題及解決安卓和對于中的兼容一直是大問題,各種不一樣,體驗還很差。參考視頻播放踩坑小計中在安卓與實際應用中遇到的問題及解決視頻標簽的一些特殊屬性詳解微信中同層播放器接入教程標簽在微信瀏覽器的問題解決方法 html5中video在安卓與ios實際應用中遇到的問題及解決 安卓和IOS對于html5中的video兼容一直是大問題,各種不一樣,體驗還很差。這段時間做一...
閱讀 1936·2021-11-15 17:58
閱讀 2131·2021-10-19 11:45
閱讀 3482·2021-09-02 15:40
閱讀 2596·2021-07-25 10:50
閱讀 3745·2019-08-30 15:56
閱讀 3146·2019-08-30 12:44
閱讀 1028·2019-08-26 13:38
閱讀 1869·2019-08-23 18:29