[Webkit-unassigned] [Bug 219295] REGRESSION (iOS 14.2): Can't play html audio with muted attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 30 17:53:03 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=219295

--- Comment #4 from Kyungmin <bkm412 at gmail.com> ---
(In reply to Kyungmin from comment #3)
> (In reply to Jer Noble from comment #2)
> > This could be a regression from
> > http://trac.webkit.org/changeset/266844/webkit, "[Cocoa] PERF: Don't
> > instantiate AVPlayer-based audio decoders or renderers if an element is
> > initially muted."
> > 
> > Trying to determine the severity here; Kyungmin, what is your use case for
> > playing a muted mp3 file?
> > 
> > (MP3 files themselves are strange, in that the duration of the file is not
> > encoded into the metadata of the file; to discover the duration you have to
> > run the decoder.)
> 
> We're making a chat-type novel, and we're letting background music come out
> at a certain point in time. However, all the media is in a muted state to
> prevent users from being surprised. The background music is based on the
> flow of the novel (playtime, atmosphere, etc.). At this time, users can
> infer the flow of this novel from the time of background music, and expect
> to hear the background music that fits the part they are currently reading
> by turning off the muted at any time.
> However, the background music is not playing at the moment and the total
> time of the background music is not known, so it is not possible to display
> background music information to the user normally. The total duration is 1
> second (we use the Math.ceil function), making the user confused as if it
> was a 1 second BGM. Because of this, we are using hacks that force us to
> release the mud and then play, which is a really bad development experience.

(In reply to Jer Noble from comment #2)
> This could be a regression from
> http://trac.webkit.org/changeset/266844/webkit, "[Cocoa] PERF: Don't
> instantiate AVPlayer-based audio decoders or renderers if an element is
> initially muted."
> 
> Trying to determine the severity here; Kyungmin, what is your use case for
> playing a muted mp3 file?
> 
> (MP3 files themselves are strange, in that the duration of the file is not
> encoded into the metadata of the file; to discover the duration you have to
> run the decoder.)


I think there's a problem with this work. 
It's not that I don't understand the intent of the work, but I think it's problematic to make the user aware like a bug.
In fact, I posted this question on Stackoverflow, and the answer was, "That's like a bug, so report a bug to the webkit."

I think it's strange that the myted state affects playback. Even if you intended it, wouldn't it feel like a bug if the user took a play action and it didn't play?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201201/9aad6726/attachment.htm>


More information about the webkit-unassigned mailing list