Issues with RTCDataChannel API
danielwegener opened this issue · 1 comments
danielwegener commented
Hi folks,
I just tried to migrate my data-channel playground app to current 0.9.0-SNAPSHOT using WebRTC API provided by #203 and found some small issues:
RTCPeerConnection.createDataChannel
is not callable, its missing itsRTCDataChannelInit
parameterRTCPeerConnection.ondatachannel
does not emit anRTCDataChannelEvent
, so one can not react on data channels requested by the peer.- some properties on
RTCPeerConnection
areval
but their value change over time. Wonder if it would make more sense to expose them asdef
.
sjrd commented
some properties on RTCPeerConnection are val but their value change over time. Wonder if it would make more sense to expose them as def.
Yes, they should be def
s in this case!