自定資源下載名稱:
http://<domain>/<key>?attname=<file_name>
這樣你的key和最終儲存檔案時的檔名可以是不一樣的,比如key使用hash的方式,而瀏覽器另存檔案時,則使用該檔案的原名。需要注意的是:對於中文檔名,為了更好的支援中文,將attname=
後面的中文檔名部分URLEncoder
如何方便引用視訊的某幀圖片作為視訊的poster?
http://xx.yy/you-video-key-fx
使用videojs firefox中可能出現以下hls的錯誤
Specified "type" attribute of "application/x-mpegURL" is not supported. Load of media resource http://s3.amazonaws.com/my_bucket/my_playlist.m3u8 failed. All candidate resources failed to load. Media load paused. "VIDEOJS:" "ERROR:" "(CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED)" "No compatible source was found for this video." {code: 4, message: "No compatible source was found for this video."} All candidate resources failed to load. Media load paused.
videojs hls播放測試url
https://videojs.github.io/videojs-contrib-hls/