Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小程序版本期望添加更多可控制视频播放和停止的api #22

Open
weiyafei-add opened this issue Nov 22, 2023 · 0 comments

Comments

@weiyafei-add
Copy link

问题1:yyeva播放器进入页面就会自动播放, 我的业务逻辑是点击按钮后才开始播放。
临时解决方案:首次进入依然会自动播放,我在onStart中立刻调用stop(),然后点击按钮的时候,调用_startToPlay()

问题2:yyeva播放器首次进入页面必须存在dom中,如果我点击按钮后再将yyeav展示出来,此时已经不能播放视频了
临时解决方案:播放器是固定定位,首次进入不设置宽度,点击的时候将宽度设置为100%

如果有朋友需要中实现类似需求,上方可以临时解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant