Streaming Video - RTSP & RTP (JAVA)
Implement a streaming video server and client that communicate using the Real-Time Streaming Protocol (RTSP) and send data using the Real-time Transfer Protocol (RTP). You shall implement the RTSP protocol in the client and the RTP packetization in the server.
implement RTSP in the Client.
Need to create Setup, play, pause, and teardown.
On the server you will need to implement the packetization of the video data into RTP packets.
For this you will need to create the packet, set the fields in the packet header, and copy the payload (i.e., one video frame) into the packet.
When the server receives the PLAY-request from the client, it starts a timer which is triggered every 100 ms. At these times the server will read one video frame from the file and send it to the client. The server creates an RTPpacket-object which is the RTP-encapsulation of the video
The server calls the first constructor of the class RTPpacket to perform the encapsulation. Your
task is to write this function.
Third part: Modify client according to behavior and change the setup button.