Streaming RTSP with HTML5 video results in a server error (100.0) error on Android

I have a very simple application for streaming HTML5 video for Android created using Phonegap. The device I'm testing is the Samsung Galaxy Tab 2. Video doesn't work at all. I see the following errors in the Eclipse Logcat window:


02-22 09:34:56.489: D/HTML5VideoView(6029): requestAudioFocus() called. proxy = Handler (android.webkit.HTML5VideoViewProxy) {4176a958} 02-22 09:34:56.489: D/HTML5VideoView(6029): requested AudioFocus. videoView = android.webkit.HTML5VideoFullScreen@416fbd50 02-22 09:34:56.512: V/MotionRecognitionManager(6029): .registerListenerEvent : success. listener count = 0->1, motion_sensors=1, listener=android.webkit.HTML5VideoView$1@416fbdd0 02-22 09:35:04.504: E/MediaPlayer(6029): internal/external state mismatch corrected 02-22 09:35:04.504: W/IMediaDeathNotifier(6029): media server died 02-22 09:35:04.504: W/AudioSystem(6029): AudioFlinger server died! 02-22 09:35:04.504: E/MediaPlayer(6029): error (100, 0) 02-22 09:35:04.551: E/MediaPlayer(6029): Error (100,0) ******************************************************************************************* Here my HTML code and Javascript code: <script src="cordova-2.4.0.js"></script> <script> function onLoad(){ document.addEventListener("deviceready", onDeviceReady, true); } function onDeviceReady(){ navigator.notification.alert("PhoneGap is working!!"); } </script> </head> <body onload="onLoad();"> <h1>Digital Home HTML5 Video Streaming Test</h1> <video preload="metadata" src="rtsp://nnn.nnn.nnn.nnn/stream1" controls></video> </body> 

I am wondering if this is due to the server sending a short introductory video (or poster) before starting the actual stream, which is interpreted by the Galaxy tab as the server that died. I do not know what event I should add a listener to handle this behavior. If I add a listener to a completed event, can I finish spinning in an infinite loop? The stream works fine on the iPad and another RTSP player that I downloaded from the Android market. What am I missing?

I can play the stream with VLC, so the SDP description should be OK

thanks

+4
source share
1 answer

I think the problem is that the Html 5 video does not currently support the rtsp protocol. it's simple.

0
source