Send image data over RTC Data Channel

后端 未结 3 1801
死守一世寂寞
死守一世寂寞 2020-12-30 14:20

I am trying to send the image data over a Data Channel, but it is not working. When just getting the data from ctx.getImageData, I receive a string

3条回答
  •  时光说笑
    2020-12-30 14:50

    This is actually a comment bornSwift's answer, but I have not enough reputation to comment. So: when you use an RTP data channel, you will see the Application Specific (AS) bandwidth within the sdp (i.e. b=AS:30). 30 is the default value. You can replace this with an arbitrary value (1638400 works, but if you want to push it further, you will have to trial and error).

    However, when you initialize an SCTP data channel, you will not see any AS bandwidth in your sdp. This is just fine. You do not have to worry about it.

提交回复
热议问题