Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r243197 - [GStreamer] Switch back to webkitwebsrc for adaptive …
…streaming fragments downloading https://bugs.webkit.org/show_bug.cgi?id=195948 Reviewed by Xabier Rodriguez-Calvar. The webkitwebsrc element now behaves much better when used through GStreamer's adaptivedemux, so use it for all WebKit media downloads. The MediaPlayer needed by the webkitwebsrc element now travels through GstContext messages and queries so that it can be shared by multiple elements, typically the first webkitwebsrc element downloads the HLS manifest and then adaptivedemux, through uridownloader, will create new webkitwebsrc elements for fragments downloading. Those new elements will query the first webkitwebsrc element for its context. The previous hack used to check SecurityOrigins can also be cleaned-up. The origins are now cached upon reception of the HTTP headers message from webkitwebsrc. No new tests, existing http/tests/media/hls tests cover this change. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: (WebCore::MediaPlayerPrivateGStreamer::setPlaybinURL): (WebCore::MediaPlayerPrivateGStreamer::loadFull): (WebCore::MediaPlayerPrivateGStreamer::handleMessage): (WebCore::MediaPlayerPrivateGStreamer::loadNextLocation): (WebCore::MediaPlayerPrivateGStreamer::wouldTaintOrigin const): (WebCore::convertToInternalProtocol): Deleted. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: (WebCore::MediaPlayerPrivateGStreamerBase::handleSyncMessage): * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: (webkit_web_src_class_init): (webKitWebSrcSetContext): (webKitWebSrcStart): (webKitWebSrcGetProtocols): (webKitWebSrcSetUri): (CachedResourceStreamingClient::responseReceived): (convertPlaybinURI): Deleted. (webKitSrcWouldTaintOrigin): Deleted. * platform/graphics/gstreamer/WebKitWebSourceGStreamer.h:
- Loading branch information
1 parent
8e31fdb
commit 8198fa8
Showing
6 changed files
with
151 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.