Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the basic program requirement That three .py files will remain what it looks like and don't need to add new code. VideoStream.py, Servery.py,ClientLauncher.py

This is the basic program requirement

image text in transcribed

That three .py files will remain what it looks like and don't need to add new code.

VideoStream.py, Servery.py,ClientLauncher.py

And those three .py files are the files that I need help with.

The ServerWorker.py RtpPacket.py and the Client.py

You can find those codes in the link below:

https://github.com/monawade0507/Networks2-Assignment6

The problem is once I run the program based on the requirement. It will say

image text in transcribed

I would be really thankful if you could help me out with the details. I am really confused about this assignment. And please don't copy other answers to here.

Socket Programming Assignment 6: Video Streaming with RTSP and RTP In this lab you will 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). Your task is to implement the RTSP protocol in the client and implement the RTP packetization in the server. We will provide you code that implements the RTSP protocol in the server, the RTP de-packetization in the client, and takes care of displaying the transmitted video. Code Client, ClientLauncher The ClientLauncher starts the Client and the user interface which you use to send RTSP commands and which is used to display the video. In the Client class, you will need to implement the actions that are taken when the buttons are pressed. You do not need to modify the ClientLauncher module. ServerWorker, Server These two modules implement the server which responds to the RTSP requests and streams back the video. The RTSP interaction is already implemented and the ServerWorker calls methods from the RtpPacket class to packetize the video data. You do not need to modify these modules. RtpPacket This class is used to handle the RTP packets. It has separate methods for handling the received packets at the client side and you do not need to modify them. The Client also de-packetizes (decodes) the data and you do not need to modify this method. You will need to complete the implementation of video data RTPpacketization (which is used by the server). VideoStream This class is used to read video data from the file on disk. You do not need to modify this class. Running the code After completing the code, you can run it as follows: First, start the server with the command python Server.py server_port where server_port is the port your server listens to for incoming RTSP connections. The standard RTSP port is 554, but you will need to choose a port number greater than 1024. Then, start the client with the command python ClientLauncher.py server_host server_port RTP_port video_file where server_host is the name of the machine where the server is running, server_port is the port where the server is listening on, RTP port is the port where the RTP packets are received, and video_file is the name of the video file you want to request (we have provided one example file movie.Mjpeg). The file format is described in Appendix section. : /Templates/VideostreamingCode \$ python3 Server.py server_port [Usage: Server.py Server_port] Traceback (most recent call last): File "/home/Belontiidae/Templates/VideoStreamingCode/Server.py", line 23, in (Server()). main() File "/home/Belontiidae/Templates/VideoStreamingCode/Server.py", line 13, in m ain rtspSocket.bind(("', SERVER_PORT)) UnboundLocalError: local variable 'SERVER_PORT' referenced before assignment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago

Question

Write short notes on departmentation.

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago