RESOLVED FIXED 218788
[Media in GPU Process] Update RemoteMediaPlayerMIMETypeCache to add the support for AVFoundationMSE media engine
https://bugs.webkit.org/show_bug.cgi?id=218788
Summary [Media in GPU Process] Update RemoteMediaPlayerMIMETypeCache to add the suppo...
Peng Liu
Reported 2020-11-10 21:57:01 PST
Update RemoteMediaPlayerMIMETypeCache to add the support for AVFoundationMSE media engine
Attachments
WIP patch (39.68 KB, patch)
2020-11-10 22:00 PST, Peng Liu
no flags
Patch (41.16 KB, patch)
2020-11-11 10:56 PST, Peng Liu
eric.carlson: review+
Patch for landing (40.15 KB, patch)
2020-11-11 15:51 PST, Peng Liu
no flags
Peng Liu
Comment 1 2020-11-10 22:00:06 PST
Created attachment 413781 [details] WIP patch
Peng Liu
Comment 2 2020-11-11 10:56:49 PST
Peng Liu
Comment 3 2020-11-11 11:02:35 PST
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?
Eric Carlson
Comment 4 2020-11-11 12:02:28 PST
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.
Peng Liu
Comment 5 2020-11-11 12:18:14 PST
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?
Peng Liu
Comment 6 2020-11-11 15:51:52 PST
Created attachment 413879 [details] Patch for landing
EWS
Comment 7 2020-11-11 17:48:29 PST
Committed r269711: <https://trac.webkit.org/changeset/269711> All reviewed patches have been landed. Closing bug and clearing flags on attachment 413879 [details].
Radar WebKit Bug Importer
Comment 8 2020-11-11 17:49:19 PST
Note You need to log in before you can comment on or make changes to this bug.