开发者

Convert SDP data from byte[] into Object?

开发者 https://www.devze.com 2022-12-24 09:48 出处:网络
I am currently sending and receiving SIP messages across a network. When I want to add SDP data to a SIP message I use the SessionDescription object in jrtp.

I am currently sending and receiving SIP messages across a network.

When I want to add SDP data to a SIP message I use the SessionDescription object in jrtp.

This object is then added to t开发者_如何学Pythonhe SIP message.

But when I get a SIP message from the server its SDP is in a byte[] array.

So I'm wondering is there anyway to convert the byte[] back into a SessionDescription object so I can use the SessionDescription object's methods to parse the data?


I think you can use Byte[] wrapper class of byte.

0

精彩评论

暂无评论...
验证码 换一张
取 消