2017.02.27
- 計劃
- hbx視頻播放控制demo
- 小程序視頻控制
- 實際完成
- hbx視頻播放控制demo
- 小程序視頻控制(video組件)
- 總結(jié)
- vs code
出現(xiàn)問題:在過去5分鐘內(nèi)內(nèi),TypeScript語言服五意外終止了5次(
)Alt text
解決方案: 添加文件 ,其他: use a custom typescript install with typescript.tsdk
Please check the C:\Program Files (x86)\Microsoft VS Code Insiders\resources\app\extensions\typescript\node_modules\typescript\lib path. There should be a tsserver.js file there. We've seen a few reports of overenthusiastic anti-virus software is deleting these files however.
If the file is missing, you can use a custom typescript install with typescript.tsdk. You can also reinstall vscode to restore the files. Be sure to exclude the typescript directory from antivirus to prevent this from happening again. Our official downloads ship the standard npm typescript package
> - 視頻控制
>> - 用[JS判斷客戶端是否是iOS或者Android手機移動端](http://caibaojian.com/browser-ios-or-android.html)
>> - IOS端控制處理: 在loadeddata事件上處理牍鞠。參考 [taobao前端團隊-視頻播放的那些事](http://taobaofed.org/blog/2016/05/23/video-player/)
>> - 安卓版控制處理:在timeupdate事件上處理峦耘。參考 [【移動端html5】video標簽設置currentTime黑屏問題優(yōu)化](http://www.voidcn.com/blog/ruangong1203/article/p-6376722.html)
>> - 播放一段時間后跳轉(zhuǎn)頁面,在timeupdate事件上處理窜觉。
>> - 事件處理參考:[HTML 事件屬性](http://www.w3school.com.cn/tags/html_ref_eventattributes.asp)
>
> - H5 video標簽在移動端,`webkit-playsinline="true"`屬性可設置不默認全屏播放。