libdatachannel icon indicating copy to clipboard operation
libdatachannel copied to clipboard

RTCPeerConnection.getStats()

Open HossamFouad opened this issue 1 year ago • 1 comments

Hi Guys, Is there a way to get the statistics of the video stream(e.g. frame width, frame height and fps) in libdatachannel ?

Notice: I could get them in the js implementation of WebRTC using RTCPeerConnection.getStats()

HossamFouad avatar Jul 26 '22 09:07 HossamFouad

This is hardly possible as libdatachannel has no support for media encoding/decoding internally, it only implements the actual media transport and expects the user to perform encoding/decoding externally. Therefore it can't easily retrieve the information from the video stream.

paullouisageneau avatar Jul 27 '22 10:07 paullouisageneau