Skip to content

receiver.hardwareAcceleration attribute instead of disableHardware[En|De]coding() static method #229

@jan-ivar

Description

@jan-ivar

It doesn't look like RTCRtpReceiver.disableHardwareDecoding() [update: and RTCRtpSender.disableHardwareEncoding()!] have shipped anywhere.

Mozilla feedback in mozilla/standards-positions#728 was originally negative (though a formal position never formed).

But after recent review, we'd like to propose a slightly different API shape that Mozilla would get behind:

partial interface RTCRtpReceiver {
  HardwareAcceleration hardwareAcceleration = "no-preference";  
}

// update: also
partial interface RTCRtpSender {
  HardwareAcceleration hardwareAcceleration = "no-preference";  
}

It's a receiver[ / sender] attribute instead of a static method.

Importantly for us, HardwareAcceleration is defined in WebCodecs, which has a page-long note about when the UA might override webpage preference.

We think this would resolve our concerns raised in the issue, specifically around the UAs ability to override website preference in situations like after a hardware codec fix.

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions