User now have more options to run the app:
- Default: Run like previous version
- Custom: User now can choose their server's port, their RTP port and the video which will be played!
On server's side:
On client's side:
python Server.py <server port>
Examples:python ClientLauncher.py <server address> <server port> <RTP port> <Video name>
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!
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!
How to run:
- Open 2 separate tabs of terminal.
- Change directory to the folder containing the code.
- For the first tab, type:
python Server.py 8000
For the second one, type
python ClientLauncher.py
- Enjoy!
How to run:
python Server.py 5540
python ClientLauncher.py localhost 5540 5541 movie.Mjpeg \
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