[Webkit-unassigned] [Bug 157290] New: [MSE] postpone selecting media engine until type information is available
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 2 17:55:26 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=157290
Bug ID: 157290
Summary: [MSE] postpone selecting media engine until type
information is available
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Media Elements
Assignee: webkit-unassigned at lists.webkit.org
Reporter: eric.carlson at apple.com
HTMLMediaElement::loadResource is called when a media element's src attribute is set/changed. It calls MediaPlayer::load with the url and content type (and media source when loading MSE), and MediaPlayer is supposed to choose the most appropriate media engine for the media type. The content type is always empty when loading from video.src, so we can't choose a media engine based on that and end up blindly selecting the first engine, MediaPlayerPrivateAVFoundationObjC. When loading a media source or media stream, the first media engine immediately rejects the call to load(), so we try the next engine, and the next if that fails, etc, etc, until one succeeds or they all fail.
While we can add methods to the MediaPlayerPrivate interface to avoid create an engine only to immediately destroy it ("mseSupported, etc), we can't have more than one MSE engine (eg. a mock engine for testing) until we have the content type made available to MediaSource::addSourceBuffer.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160503/b230fe03/attachment.html>
More information about the webkit-unassigned
mailing list