Comments (6)
昨天尝试 demo 在编译后运行,切换视频源时会报错,导致无法切换成功,删除了rebuildPlayer中的player.destory() 就不会报错了
from chimee-player.
@hxzpily2 具体报什么错呢?建议正式应用环境里保留 player.destroy() --- 以保证销毁前面存在的播放器实例并正常终止可能存在的后台逻辑。
from chimee-player.
index.mjs:401 Uncaught TypeError: el.removeEventListener is not a function
具体位置在 _Object$keys(this.__events).forEach(function (key) { 这一行 __events是空对象
, {
key: '__destroy',
value: function __destroy() {
var _this6 = this;
this.__unwatchHandlers.forEach(function (unwatcher) {
return unwatcher();
});
_Object$keys(this.__events).forEach(function (key) {
if (!isArray(_this6.__events[key])) return;
_this6.__events[key].forEach(function (fn) {
return _this6.$off(key, fn);
});
});
delete this.__events;
}
},
我编译出来的是 _Object$keys 我看官网的demo 这里编译出来的是 _Object$keys$ ,我是js新手,不算太明白
,另外如果写一个VR播放插件,现有插件系统逻辑里面在哪里劫持video给video截图上传给webgl呢
from chimee-player.
@hxzpily2 通过代码片段没法断定问题的根源,有可能插件编写上有问题。
另,要拿到原生videoElement对象可以在插件的声明周期钩子中使用 this.$video (参考资料),但因为设计之初不建议这么用,会导致出现一个警告,你也可以通过选择器自己查找。
from chimee-player.
我是直接zip 下载的 chimee-player 然后解压到一个目录里面,然后执行 npm install ,npm run build ,然后把demo 和 lib文件放到测试服务器里面,我试试npm install chimee-player --save 的方法吧,感谢您的回复
from chimee-player.
@hxzpily2 感谢反馈,我这边尝试重新构建复现了你说的问题,已升级处理,请留意版本更新,再次感谢
from chimee-player.
Related Issues (20)
- 在引入[email protected],打包后报错 HOT 8
- 高频切换视频源报错 HOT 3
- ended事件不触发? HOT 4
- npm安装非常慢 HOT 4
- 因为一些需求的原因需要在移动端使用chimee-player,部分设备不支持 HOT 1
- 在ipad下可以用播放m3u8格式的视频吗,是不是ipad下不能用hls.js HOT 1
- 新版chrome下m3u8只加载不播放 HOT 2
- 怎么播放rtsp?或者用什么方式可以播放rtsp HOT 2
- 好像也没有解决播放器在不同手机浏览器的H5页面中的UI样式问题吧? HOT 1
- m3u8 格式有的播放不了 HOT 1
- 播放器不知道为什么自己显示了乱七八糟的样式 HOT 1
- http://chimee.org/#demo 样式有问题
- chimee-player播放网络直播流卡顿。 HOT 1
- ts文件伪装成png图片后无法播放
- 有什么safari浏览器能播放,但是chrome不能播放,这种chrome的兼容性如何解决, HOT 2
- 有时候safari浏览器能播放,但是chrome不能播放,这种chrome的兼容性如何解决
- npm install后直接npm start报错,无法使用
- 音频编码问题
- 支持TS格式(H264+ACC)吗?
- chimee-player在angular下的使用
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chimee-player.