I'm developing a small demo player for Video Multicast Stream.
In the current state:
- I have a working UDP Multicast socket (Android) and a video Streamer (PC).
- I have a Video player (MediaPlayer/VideoView) that can open HTTP/RTSP Streams.
- The Video is streamed in MPEG 2 TS - I can open the video using HTTP Stream.
The problem is that I can't open the UDP Stream with the player.
Here is the code:
VideoView videoView = (VideoView) findViewById(R.id.VideoView);
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
Uri video = Uri.parse("udp://239.192.1.31:1234");
videoView.setMediaController(mediaController);
videoView.setVideoURI(video);
videoView.start();
Note: I used tcpdump to make sure I was receiving the UDP Multicast stream.