I 've set Wowza streaming server to stream mp4 videos to Android phones. Android phone can play the RTSP stream successfully but here It only plays audio of the file not the video.
0
votes
Do you know what exact video codec are you using?
– pixel
Well I 'm trying to play .mp4 file on Android device using RTSP.
– success_anil
Did you try to play it using build-in Android Media Player? Try to analyze (in Eclipse) LogCat output. Maybe you are using unsupported video codec.
– Dariusz Bacinski
Hi Darbat Will do dat too. Thanks
– success_anil
1 Answers
1
votes
Did you set surface (VideoView or SurfaceView) on which you would like to display video? You have to run setDisplay before running playback.
Problems with video can also be caused by starting playback too early. You should start player after surface is created. If you want to start playback at start of the Activity, you should do it on surfaceCreated event. You can listen to this event by implementing SurfaceHolder.Callback
Can you provide some source codes?
You can also try to follow Android ApiDemos. Video streaming player example can be found at:
...android-sdk-windows\platforms\android-x\samples\ApiDemos\src\com\example\android\apis\media\MediaPlayerDemo_Video.java