Bug 227904 - [GStreamer] RTSP playback broken
Summary: [GStreamer] RTSP playback broken
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-13 06:06 PDT by Philippe Normand
Modified: 2024-04-19 07:40 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2021-07-13 06:06:14 PDT
player doesn't start. See also https://github.com/Igalia/meta-webkit/issues/293
Comment 1 Philippe Normand 2021-11-29 01:45:59 PST
Workaround:

diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
index b6911dff7994..ba5c2412f796 100644
--- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
+++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
@@ -2348,8 +2348,7 @@ void MediaPlayerPrivateGStreamer::updateStates()
         else if (m_currentState == GST_STATE_PLAYING)
             m_isPaused = false;
-        if (!m_isPaused && m_playbackRate)
-            changePipelineState(GST_STATE_PLAYING);
+        changePipelineState(GST_STATE_PLAYING);
         m_networkState = MediaPlayer::NetworkState::Loading;
         break;
Comment 2 Philippe Normand 2024-04-19 07:39:55 PDT
Also requires network access from WebProcess...

I'm inclined to WONTFIX this.
Comment 3 Philippe Normand 2024-04-19 07:40:29 PDT
There are alternatives, such as https://github.com/deepch/RTSPtoWebRTC