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

Taro.createInnerAudioContext() obeyMuteSwitch不生效 #567

Closed
WFQX opened this issue Sep 3, 2018 · 0 comments
Closed

Taro.createInnerAudioContext() obeyMuteSwitch不生效 #567

WFQX opened this issue Sep 3, 2018 · 0 comments

Comments

@WFQX
Copy link

WFQX commented Sep 3, 2018

initAudio = () => {
const innerAudioContext = Taro.createInnerAudioContext();
innerAudioContext.autoplay = true;
innerAudioContext.obeyMuteSwitch = false;
innerAudioContext.onPlay(() => {
});
innerAudioContext.onTimeUpdate(() => {
});

this.innerAudioContext = innerAudioContext;

};

obeyMuteSwitch设置为false,手机静音没有声音

机型:安卓跟ios

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