W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > July 2017

Re: [webrtc-pc] RTCTrackEvent's type parameter

From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
Date: Sat, 08 Jul 2017 18:04:39 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-313871796-1499537077-sysbot+gh@w3.org>
running this in Firefox (from the wpt SRD test)
```
    const sdp = `v=0
o=- 166855176514521964 2 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic:WMS *
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:someufrag
a=ice-pwd:somelongpwdwithenoughrandomness
a=fingerprint:sha-256 8C:71:B3:8D:A5:38:FD:8F:A4:2E:A2:65:6C:86:52:BC:E0:6E:94:F2:9F:7C:4D:B5:DF:AF:AA:6F:44:90:8D:F4
a=setup:actpass
a=rtcp-mux
a=mid:mid1
a=sendonly
a=rtpmap:111 opus/48000/2
a=msid:stream1 track1
a=ssrc:1001 cname:some
`;
var pc = new RTCPeerConnection();
    pc.ontrack = (event => {
      console.log("ontrack", event.type);
    });

    pc.setRemoteDescription(new RTCSessionDescription({type: 'offer', sdp: sdp}))
```
suggests 'track', i.e. the event name.

-- 
GitHub Notification of comment by fippo
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1467#issuecomment-313871796 using your GitHub account
Received on Saturday, 8 July 2017 18:04:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:21:40 UTC