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

iOS SDK for interfacing with the Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
66 stars 29 forks source link

Is there any example about using data channel? #40

Open Minho-at-keywe opened 3 years ago

Minho-at-keywe commented 3 years ago

Hi, I'm writing an app using Kinesis video streaming in iOS. This SDK sample seems don't have sample using data channel. But I confirmed that Android SDK has sample for it. Perhaps, I haven't found the sample. So, do you have any sample for using data channel like Android?

disa6302 commented 3 years ago

@Minho-at-keywe ,

There is not an example to use data channels at the moment.

MineshDurai commented 2 years ago

Hello All, I am using Kinesis video streaming in iOS, Like android iOS stream are not saved in KVS Stream in aws console. Is there any example to store the data in KVS or is it possible to store the streamed data. I need the data for playback option. Streaming is not connected to android to iOS ? Sometimes viewer mode will not connecting to the master Please reply me asap thanks in advance

Bhoon-coding commented 1 year ago

@disa6302 Isn't there something to use dataChannel example yet? and I wonder there is dataChannel implementation but no exist example. I tried to send data another peer. It works! but, another peer send data to me is not work.. I know the method (below code) call when I received data.

func dataChannel(_: RTCDataChannel, didReceiveMessageWith buffer: RTCDataBuffer) {
        DispatchQueue.main.async {
            self.delegate?.webRTCClient(self, didReceiveData: buffer.data)
        }

    }

Is there any solution?