Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 909 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 909 Bytes

RTSP Viewer

Stores and play a collection of RTSP streams

       

For developers

If you want to play RTSP streams in your own app, you should check the PlayerFragment.

Basically all you have to do is to set a RTSP url to VideoView and start playback

// Configure media controller
MediaController mediaController = new MediaController(getContext());
mediaController.setAnchorView(viewBinding.vvPlayer);
mediaController.setMediaPlayer(viewBinding.vvPlayer);

// Configure video view to fetch stream
viewBinding.vvPlayer.setMediaController(mediaController);
viewBinding.vvPlayer.setVideoURI(liveStreamUri);
viewBinding.vvPlayer.start();