[Webkit-unassigned] [Bug 270622] New: [GStreamer] playback doesn't start if less than 1s of video is available.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 7 01:24:26 PST 2024


            Bug ID: 270622
           Summary: [GStreamer] playback doesn't start if less than 1s of
                    video is available.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jean-yves.avenard at apple.com
                CC: philn at igalia.com

In bug 270614 I added a test which loads 1s of video, call play() and waits for playback to stall.

        loader = new MediaSourceLoader('content/test-fragmented-video-manifest.json');
        await loaderPromise(loader);
        video.disableRemotePlayback = true;
        video.muted = true;
        run('source = new ManagedMediaSource()');
        run('video.src = URL.createObjectURL(source)');
        await waitFor(source, 'sourceopen');
        run('sourceBuffer = source.addSourceBuffer(loader.type())');
        await waitFor(sourceBuffer, 'update');
        await waitFor(sourceBuffer,'update');
        await waitFor(sourceBuffer,'update');
        await waitFor(video, 'playing');
        await Promise.all([
        testExpectedEventuallySilent('video.currentTime', 1, '>='),
            waitFor(video, 'waiting')
        testExpected('video.currentTime', 1, '>=');
        currentTimeWhenStalling = video.currentTime;

        // Issue pause() command while playback has stalled.
        // Fill gap, playback shouldn't continue, even briefly.
        await sleepFor(1000);
        testExpected('video.currentTime == currentTimeWhenStalling', true);

runs with GStreamer based players show that playback doesn't reach the currentTime=1s mark, we never stall and the waiting event is never fired.


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/20240307/4c1b4a4e/attachment.htm>

More information about the webkit-unassigned mailing list