Support for AMD usage of jwplayer (require js)
2016-07-12 14:33
393 查看
使用require js 模块化代码时,其中播放器用的是jwplayer7.x 然后载入jwplayer.js后总是报license无效(license已经加入),最后在jwplayer官网论坛里找到问题:
The reason seems to be that the flash player needs access to
While waiting for a fix, a workaround is to simply set
The reason seems to be that the flash player needs access to
window.jwplayer.
window.jwplayeris not set when using AMD (or CommonJS), therefore the flash player doesn't work.
While waiting for a fix, a workaround is to simply set
window.jwplayerin the app's code:
define(['jwplayer'], function (jwplayer) { window.jwplayer = jwplayer; ... })
相关文章推荐
- QPBOC(Quick People‘s Bank Of China)
- 《APUE.3E》习题4.6编写自己的cp(l)程序,它复制包含空洞的文件,但不将字节0包含到输出文件中去
- UItextFiled只能输入数字
- 设置圆角 cell
- android使用ExecutorService来处理子线程与UI线程的通讯问题
- POJ-2081-Recaman's Sequence
- LeetCode Top K Frequent Elements
- MVC文件上传 - 使用Request.Files上传多个文件
- 『MySQL』索引类型 normal, unique, full text
- String、StringBuffer、StringBuilder的比较
- iOS 监听UITextfield输入内容
- GUI中小问题
- Building Fence hdu 凸包
- UITableView 侧拉菜单 原生+自定义 详解
- IOS UIScrollview约束问题
- Common Subsequence
- iOS控件之UITextView字数控制以及占位符的实现
- eclispe Dynamic Web Module 3.1 requires Java 1.7 or newer
- android build system
- iOS 解决在Storyboard中修改UITableViewCell背景色无效果的问题