w3c / mediacapture-fromelement

API to create a MediaStream from Media Element
https://w3c.github.io/mediacapture-fromelement
Other
21 stars 15 forks source link

Safari and Chrome exposes different settings for canvas capture tracks #101

Open youennf opened 3 weeks ago

youennf commented 3 weeks ago

As per https://jsfiddle.net/mqxcr3zv/, Safari exposes width and height. Chrome exposes aspectRatio, deviceId, frameRate, width, height, resizeMode. Not sure about Firefox.

It triggers a compatibility issue as frameRate was used to configure a WebCodecs encoder and no frame rate was given to Safari. It would be good to get consistency across user agents to get better interoperability.