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

播放器返回开头播放 #1414

Merged
merged 5 commits into from
Jan 16, 2021
Merged

Conversation

LonelySteve
Copy link
Contributor

来自 #1411

不知道为啥,直接调用 unsafeWindow.player.seek(0) 会导致播放器开始播放,但是居然还保持了上次播放位置的记忆状态,等到用户再次暂停播放时就会被触发,只好先调用一遍 unsafeWindow.player.play()

但这样做也并非没有缺点,还是会弹出提示:

image

要屏蔽这个提示也不是做不到,就是感觉有点麻烦,不知道有没有更好的办法

@LonelySteve LonelySteve marked this pull request as ready for review January 8, 2021 13:00
@LonelySteve
Copy link
Contributor Author

将就着凑合用吧。。如果强行屏蔽提示,效果更不好(

@the1812 the1812 merged commit 11b09eb into the1812:preview Jan 16, 2021
the1812 added a commit that referenced this pull request Jan 16, 2021
@LonelySteve LonelySteve deleted the features/return-begin branch January 20, 2021 03:13
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

Successfully merging this pull request may close these issues.

2 participants