mutaphore / RTSP-Client-Server

Implementation of a streaming video server and client that communicate using the Real-Time Streaming Protocol (RTSP) and send data using the Realtime Transfer Protocol (RTP)
523 stars 191 forks source link

In the constructor of RTPpacket.java why don't we construct Ssrc according to byte[] packet #18

Open FourierX9 opened 3 years ago

FourierX9 commented 3 years ago

Hi! I think in the constructor of an RTPpacket object from the packet bistream, the Ssrc needs to be built. As I am working on a protocal called GB28181, I need to identify the video stream from different cameras through Ssrc. And I think it can be built from 8th, 9th, 10th, 11th bit in the header[], which is a little bit similiar to building the TimeStamp. Thanks!

akay777 commented 3 years ago

I'm getting indexarrayoutofbound exception, can you please tell hoe can it be resolved?

FourierX9 commented 3 years ago

Hi! Actually I have never run this project. I am learning how to unpack a RTP packet and build my own project. So I have not met the same problem as yours. Concerning your problem, I think we might have to check the header of the packet you received. If it do not have the 8th-11th bit in the header then you might meet an exception.

akay777 commented 3 years ago

Ok. Firstly,Thank you for helping. Can you please tell that what are other protocols other than webRTC that I should consider for video streaming comparison..like protocols that are as good as webRTC or not better that webRTC but better than others.

FourierX9 commented 3 years ago

Maybe FLV? In my project, we use FLV to send video stream to user. But I have never compared it with WebRTC.