ionic下正确使用videogular的$API的姿势
来源:互联网 发布:mac sql 可视化工具 编辑:程序博客网 时间:2024/05/15 07:00
controller:
$scope.API = null; $scope.onPlayerReady = function ($API) { $scope.$API = $API; console.log("API____:"+$scope.$API.currentState); } $scope.watchTime = function ($currentTime,$duration) { var currentTime = Math.round($currentTime); console.log("watchTIme____"+currentTime); if(currentTime>=10){ console.log("STOP-------"); $scope.$API.play(); } }
html:
<videogular crossorigin="anonymous" vg-theme="config.theme.url" vg-player-ready="onPlayerReady($API)" vg-complete="onCompleteVideo()" vg-update-time="watchTime($currentTime,$duration)" frameborder="0" width="560" height="315" style="position:absolute;top:0;left:0;width:100%;height:100%;" >
ref:http://stackoverflow.com/questions/33360730/how-do-i-access-the-methods-of-the-video-when-using-videogular
1 0
- ionic下正确使用videogular的$API的姿势
- 使用 iCloud API 的正确姿势
- Fragment使用的正确姿势
- git 的正确使用姿势
- 使用libcurl的正确姿势
- datasheet 使用的正确姿势
- layout_weight的正确使用姿势
- ActivityLifecycleCallbacks的正确使用姿势
- SharedPreference使用的正确姿势
- 使用layoutinflater的正确姿势
- WWW的正确使用姿势
- 使用layoutinflater的正确姿势
- MongoDB的正确使用姿势
- 枚举使用的正确姿势
- 使用SQLiteOpenHelper的正确姿势
- 动画的正确使用姿势
- FragmentTabHost的正确使用姿势
- 使用commitizen的正确姿势
- 样式和主题
- 用c语言实现ping命令的原理及代码
- Android启动过程详解(3)——Zygote
- 单片机的按键处理程序
- CRT调用VBS脚本实例
- ionic下正确使用videogular的$API的姿势
- 在php中使用jsonp跨域请求
- Android设置虚线、圆角、渐变
- android 开发零起步学习笔记(十):UI控件动态加载机制浅析
- OSI和TCP/IP协议模型简介
- GRNN广义回归神经网络
- Item18 Use std::unique_ptr for exclusive-ownership resource management
- Unity&Shader基础篇-常用函数的使用与案例
- 解决Flex定位在IOS弹出键盘失效的方案