Android RTSP unable to seek

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();

I don’t think there is experience with this player API in Wowza, I don’t have any. Maybe others will have info.

Richard

For RTSP playback in Android you can open a browser:

<a href="rtsp://[wowza-address]:1935/vod/sample.mp4">Some Movie</a>

For Android 2.2+ you can use RTMP* or Flash HTTP (Sanjose) streaming in a Flash application.

Richard

Hi Benford,

I am currently experiencing the same problem. Did you ever get it resolved?

Thanks,

Eyal.

Eyal,

Just an FYI. I am able to seek using the Wowza Direct RTSP URL demo with the Doga RTSP player on Android.

What playback API is usually used within Android applications? Or is Wowza only suited to browser playback?

The video starts to play fine and looks great. I just have no control over it!

The application we are developing really needs to be a native Android application and to control the video using it’s own logic. So dropping out and going to the standard Android media playback interface isn’t an option really.

We’ve already ported one of our existing flash applications over to Android with varying results. Which is why we decided to develop a native app.