How to track the resolution/aspect ratio of a WebRTC VideoStream in Chrome?

Gabor

My webapp displays a realtime video stream coming from a mobile device. I need to take action when the video orientation changes.

Preferably I would want to subscribe for an event, but I did not find any such event on the MediaStreamTrack interface.

The closest thing I could find was getSettings, which according to MDN is supported since Chrome 53: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack

But my Chrome (v54) does not seem to know about this function.

I would appreciate any ideas, suggestions or even just background information on above mentioned feature.

Philipp Hancke

videoElement.onsize should be triggered. I doubt MediaStreamTrack.getSettings will trigger for a remote track...

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to modify the content of WebRTC MediaStream video track?

How to temporarily cancel sending of video track in webRTC?

How to keep 1:1 aspect ratio video all the time in WebRTC

WebRTC: How to determine if remote user has disabled their video track?

How does "Do not track" in Google Chrome work?

Chrome extension, how to track each visited page?

WebRTC/Jitsi Media Track constraints

How can I create a MediaStream track from a continuous stream of images in node.js? (for usage with WebRTC)

WebRTC: how to detect when a stream or track gets removed from a PeerConnection, in Firefox?

WebRTC on Chrome; how do I know if it's using UDP or TCP

How to set remote description for a WebRTC caller in Chrome without errors?

how to launch headless chrome with "do not track" setting with puppeteer?

How to track down which chrome extension is generating popunders?

webRTC in Chrome iOS

WebRTC works in Chrome but not Firefox

WebRTC Chrome Camera constraints

WebRTC : Chrome not recording video/audio

WebRTC chrome remote audio forward

Chrome ask for track-by but not Firefox

How to solve such a ratio function?

how to calculate proportional ratio

How to calculate ratio in Mysql?

how to solve for a ratio of symbols

How to realize ratio with powerpivot

WebRTC Native, AudioTrackSinkInterface added to track, but OnData is never called

Chrome DevTools - how to track network request when URL triggers Save dialog

Chrome audit - insufficient contrast ratio for disabled button

How to clear RTCPeerConnection (WebRTC)?

webRTC how to tell if there is audio