I am developing an Android app that connects and plays media from a Wowza server.
I have a VideoView connecting to the correct address and playing the media. A MediaController is connected to that VideoView and correctly displays the time and shows the progress through the file with the scrubber bar.
However using the scrubber bar doesn’t seek through the video. Neither does calling VideoView.seekTo(int pos)
If I connect to the same URL using VLC it plays correctly.
Any help is greatly appreciated!
Regards
Ben
VideoView vid = (VideoView) findViewById(R.id.videoPlayer);
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(vid);
mediaController.setMediaPlayer(vid);
vid.setMediaController(mediaController);
Uri videoUri = Uri.parse("rtsp://myserver:1935/vod/mp4:sample.mp4");
vid.setVideoURI(videoUri);
vid.start();