Open Bug 2044636 Opened 1 month ago Updated 1 month ago

Make webrtc codec queries for MediaCapabilities async

Categories

(Core :: Audio/Video, task, P2)

task

Tracking

()

ASSIGNED

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.

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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: