Replies: 2 comments
-
|
可以修改dist index.js文件,但是不建议修改node_modules下的代码,如果需要,可以自己定义play pause插件,然后集成到播放器里,https://v2.h5player.bytedance.com/plugins/#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8F%92%E4%BB%B6 |
Beta Was this translation helpful? Give feedback.
0 replies
-
问题就在于官方文档太简略了啊,啥啥都没有。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我在我的Vue项目中导入了xgplayer-vue,项目运行完美。
但是我想要自定义播放和暂停等按键的功能,直接在xgplayer/dist/control/play.js和xgplayer/src/control/play.js中修改源代码,在Player.pause()后加入console.log()进行测试,发现播放暂停后并不会触发log事件。。。
es和browser文件夹我也尝试修改了,都无法达到目的。请问到底该作何修改才能正常触发
Beta Was this translation helpful? Give feedback.
All reactions