Make webrtc codec queries for MediaCapabilities async
Categories
(Core :: Audio/Video, task, P2)
Tracking
()
People
(Reporter: pehrsons, Assigned: pehrsons)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
P*MFactory::Supports returns sync, but if using a remote codec and the remote process wasn't launched from the current content process yet, some defaults are returned. Make the queries async and wait for the remote process to respond the first time it's queried.
Also use PMFactorySupport (singleton) instead of PMFactory directly.
| Assignee | ||
Comment 1•1 month ago
|
||
Add async support queries through the encoder stack (PlatformEncoderModule,
RemoteEncoderModule, PEMFactory) and convert the WebRTC decode/encode glue
(WebrtcMediaDataDecoder, WebrtcVideoCodecFactory, MediaDataCodec, CodecInfo) to
resolve once the relevant remote process has reported accurate hardware
support. The MediaCapabilities WebRTC decode and encode paths and the
TestWebRTCCodecInfo gtests now use these; the superseded synchronous WebRTC
support paths are removed. WebRTC decode support reuses the cached
PDMFactorySupport singleton.
Description
•