Summary: | [Media in GPU Process] Update RemoteMediaPlayerMIMETypeCache to add the support for AVFoundationMSE media engine | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Peng Liu <peng.liu6> | ||||||||
Component: | Media | Assignee: | Peng Liu <peng.liu6> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Peng Liu
2020-11-10 21:57:01 PST
Created attachment 413781 [details]
WIP patch
Created attachment 413840 [details]
Patch
Comment on attachment 413840 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=413840&action=review > Source/WebKit/WebProcess/GPU/media/RemoteMediaPlayerManager.cpp:-125 > -void RemoteMediaPlayerManager::initialize(const WebProcessCreationParameters& parameters) Eric, do we need to keep this function? Comment on attachment 413840 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=413840&action=review > Source/WebKit/WebProcess/GPU/media/RemoteMediaPlayerMIMETypeCache.cpp:59 > + for (auto& type : types) > + m_supportedTypesCache.add(type); You can call addSupportedTypes(). >> Source/WebKit/WebProcess/GPU/media/RemoteMediaPlayerManager.cpp:-125 >> -void RemoteMediaPlayerManager::initialize(const WebProcessCreationParameters& parameters) > > Eric, do we need to keep this function? We definitely want to cache WebProcessCreationParameters.mediaMIMETypes so we don't have to ask AVFoundation for MIME types more than once in the life of the host application. Comment on attachment 413840 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=413840&action=review >> Source/WebKit/WebProcess/GPU/media/RemoteMediaPlayerMIMETypeCache.cpp:59 >> + m_supportedTypesCache.add(type); > > You can call addSupportedTypes(). Right! Will fix it. >>> Source/WebKit/WebProcess/GPU/media/RemoteMediaPlayerManager.cpp:-125 >>> -void RemoteMediaPlayerManager::initialize(const WebProcessCreationParameters& parameters) >> >> Eric, do we need to keep this function? > > We definitely want to cache WebProcessCreationParameters.mediaMIMETypes so we don't have to ask AVFoundation for MIME types more than once in the life of the host application. I see! Does parameters.mediaMIMETypes includes supported MIME types of AVFoundation media engine only, or for all other media engines? Created attachment 413879 [details]
Patch for landing
Committed r269711: <https://trac.webkit.org/changeset/269711> All reviewed patches have been landed. Closing bug and clearing flags on attachment 413879 [details]. |