[Webkit-unassigned] [Bug 174241] [GTK] Layout test media/video-inactive-playback.html is timing out

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 7 08:57:46 PDT 2017


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

--- Comment #2 from Jer Noble <jer.noble at apple.com> ---
(In reply to Ms2ger from comment #1)
> I looked into this and the problem is that the test sets restrictions on the
> "videoaudio" session:
> 
>         run('internals.setMediaSessionRestrictions("videoaudio", "")');
>         run('internals.setMediaSessionRestrictions("videoaudio",
> "inactiveprocessplaybackrestricted")');
> 
> while forEachSession only finds a "video" session. This means nothing
> special happens and neither the expected "pause" or the expected "playing"
> event are fired.
> 
> (However, a "playing" event is fired as the result of the video finishing
> naturally.)
> 
> It's not clear to me why this test works at all on other platforms.
> 
> Jer, thoughts?

The file LayoutTests/media/content/test.{mp4,ogv} should have both an audio and a video track, so the resulting session should be of MediaType "VideoAudio", and not just "Video".  It sounds like that's the source of your problem.

If you look at HTMLMediaElement::mediaType(), it will return VideoAudio if the readyState >= HAVE_METADATA, the MediaPlayerPrivate return true for hasVideo() & hasAudio(), and the element is not muted.  So either this test is being run before the "loadedmetadata" event is fired, or the GTK media player doesn't think the file has audio.

-- 
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/20170807/31f1f6a1/attachment.html>


More information about the webkit-unassigned mailing list