Bug 259106 - Cannot play audio and video with audio at the same time
Summary: Cannot play audio and video with audio at the same time
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 17
Hardware: All iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-11 05:48 PDT by Alex Chadwick
Modified: 2023-07-18 05:49 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Chadwick 2023-07-11 05:48:57 PDT
Hi there,

Recently I was involved in a project that had a music player. This music player had some videos to enhance the UI that had some sound to them to make them more "immersive". At the same time, we needed to start playback of the audio of the selected track.

For some reason this was not possible. To be clear this was happening *after* the user had interacted with the DOM, so I see no reason why this couldn't happen. The flow of the web application was as follows:

1. The application loads
2. The user selects a track
3. A video plays of an animation. This has vinyl sounds included. This video is then looped.
4. The audio starts to play at the same time as the video

As a workaround we had to mute the video on any iOS devices or Safari instances.

Additionally, there is no relevant information outputted to the console, all it says is that playback is forbidden but will not tell you what the cause is.

KR,

Alex
Comment 1 Radar WebKit Bug Importer 2023-07-18 05:49:24 PDT
<rdar://problem/112465614>