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

fix audio replay invalid for ios #102

Merged
merged 2 commits into from Jun 24, 2019

Conversation

@knoxHuang
Copy link

commented Jun 19, 2019

之前适配 audio 的 stop,是为了解决安卓平台 stop 音频后 currentTime 无法清零,但是现在的适配层会导致 ios 重新播放音频后无法生效

解决方案:现在只限制与安卓平台才生效该适配代码

@jareguo

This comment has been minimized.

Copy link

commented Jun 21, 2019

之前适配 audio 的 stop,是为了解决安卓平台 stop 音频后 currentTime 无法清零

麻烦补充一下注释,你重写 stop 究竟为了啥,从代码里体现不出来

@knoxHuang

This comment has been minimized.

Copy link
Author

commented Jun 21, 2019

是因为 (pause 后,设置 currentTime 为 0 的这种 stop 方式),在安卓平台是无法让 currentTime 为 0

@jareguo jareguo merged commit 3718e4f into cocos-creator-packages:v2.1.2 Jun 24, 2019

@jareguo

This comment has been minimized.

Copy link

commented Jun 24, 2019

修复微信小游戏在 iOS 上音频无法重新播放的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.