awslabs / amazon-kinesis-video-streams-webrtc-sdk-js

JS SDK for interfacing with the Amazon Kinesis Video Streams Signaling Service.
https://awslabs.github.io/amazon-kinesis-video-streams-webrtc-sdk-js/examples/index.html
Apache License 2.0
286 stars 141 forks source link

Add callback for self-created data channel #247

Closed yuma-m closed 1 year ago

yuma-m commented 1 year ago

Issue #, if available: https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/issues/1752

Description of changes: In case of using C SDK master and JS SDK viewer, C SDK will send back a message on the data channel created by JS SDK viewer. However, JS SDK viewer doesn't have a callback function to the data channel created by itself. This behavior is confusing for users not familiar with WebRTC.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.