Skip to content

VuHuy-cse-9/ComputerNetWorkAssignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 

Repository files navigation

ComputerNetWorkAssignment

Alpha 1.2:

User now have more options to run the app:

  1. Default: Run like previous version
  2. Custom: User now can choose their server's port, their RTP port and the video which will be played! On server's side:
    python Server.py <server port>
    
    On client's side:
    python ClientLauncher.py <server address> <server port> <RTP port> <Video name>
    
    Examples:
    python Server.py 5000
    python ClientLauncher.py localhost 5000 3000 video.Mjpeg
    

User can also run Server with custom mode and ClientLauncher with default mode. It also works!

Alpha 1.1 versions:

Following the instruction of Alpha 1.0, except when running Server:

  python Server.py

However, if you strickly follow the Alpha 1.0, it still works!

Alpha 1.0:

How to run:

  1. Open 2 separate tabs of terminal.
  2. Change directory to the folder containing the code.
  3. For the first tab, type:
  python Server.py 8000

For the second one, type

 python ClientLauncher.py
  1. Enjoy!

PT_HA:

How to run:
python Server.py 5540
python ClientLauncher.py localhost 5540 5541 movie.Mjpeg \

Thinh_Huy:

Notice: require opencv
Install opencv: pip install opencv-contrib-python
Default File Name: movie.Mjpeg
Prepared Command Line:

  sudo kill -9 $(lsof -t -i:<server port>) | sudo kill -9 $(lsof -t -i:<rtp port>)

Running Application:

 python Server.py <server port>

Server Main Thread is an RTSP socket listening for request

 python ClientLauncher.py <host address> <server port> <rtp port> <filename>

Switch
Choosing old file brings client back to READY state
Choosing new file triggers TEARDOWN event to close rtp,videoplayer threads. Reclick setup button for new connection with new filename Note: Currently not applicable for mjpeg from internet

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages