cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
7.19k stars 1.83k forks source link

[3.6.3] iOS : Embed video in WKWebView stop music in background #14549

Open dev-keishen opened 1 year ago

dev-keishen commented 1 year ago

Cocos Creator version

3.6.3

System information

IOS

Issue description

Relevant error log output

No response

Steps to reproduce

  1. Create a webview and paste an link youtube video into it
  2. You will see that background music will be stopped when youtube music video played

Minimal reproduction project

sample.zip

mmyduckx commented 1 year ago

I've test your project, the current performance is: Background audio music play by defualt. If you click video, system will play video music and interrupt background aduio music. I think this is in line with the expected performance of the iOS for simultaneous playback of sound and video. @dev-keishen And I do not find any configuration related webview to control simultaneous playback of sound and video. Please make sure whether our audio have related configuration to control, just in case. @bofeng-song