Reputation: 1
I've been trying for quite some time now to use Android's MediaPlayer to stream mp4/h-264 encoded video to my HTC Incredible (Android 2.2). However, I've been getting various error messages such as "prepare failed", "setDataSource failed", "unable to create media player", and "media server died."
I was able to stream an mp4 video and a USB webcam feed from a VLC server on my desktop to my android last week (with about 9 seconds latency), and for some reason this week it won't even load.
I'm currently using the exact same method that Android has provided in their API DEMOS regarding media, and I'm not trying to access it from an outside network. Has anybody figured out media player, or is a custom client with a VideoView the way to go?
Any help would be greatly appreciated
-AB
Upvotes: 0
Views: 3734
Reputation: 1317
The problem with RTSP in the android is bitrate. With low bitrates, every file will work.
If you don't care about the stream being UDP, you can use HTTP stream:
Attention: The movie name must be *.mp4
Upvotes: 0