In my experience, as far as WebRTC PeerConnections are involved, the 'playing' 
event is more reliable to get the resolution info the first time, see here:

https://github.com/meetecho/janus-gateway/blob/master/html/echotest.js#L204

The 'loadeddata' most of the times still returned 0x0, unless I waited a couple 
of seconds with a setTimeout after that. Not sure if any update since the last 
time I tried fixed this.

L.


Il giorno venerdì 26 giugno 2015 23:03:53 UTC+2, Andreas Pehrson ha scritto:
> Sounds like the 'resize' and 'loadeddata' events on HTMLVideoElement will
> do what you want.
> 
> *Andreas Pehrson *--- Software Engineer
> 
> (+47) 959 60 374   |   [email protected]   |
> www.telenordigital.com
> 
> On Thu, Jun 25, 2015 at 3:36 PM, <[email protected]> wrote:
> 
> > Hi All,
> >
> > I am writing an WEBRTC based application on Browser clients. I wanted to
> > know whether there is any way i can detect if there resolution change in
> > the incoming RTP video stream? Also, is there is any event which can tell
> > me that the client has decoded the first frame from the remote end(This is
> > so that we can display the video only after few frames have been decoded)?
> >
> > On Chrome we can use the Peerconnection.getStats() API to get the
> > information on the incoming stream's decode resolution. But stats obtained
> > on Firefox(i am currently using FF-41) doesn't seem to have this
> > information.
> >
> > I appreciate any help you guys can provide on this.
> >
> > Thanks,
> > Ram
> > _______________________________________________
> > dev-media mailing list
> > [email protected]
> > https://lists.mozilla.org/listinfo/dev-media
> >
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to