jaeyoung-kwun / spydroid-ipcamera

Automatically exported from code.google.com/p/spydroid-ipcamera
GNU General Public License v3.0
0 stars 0 forks source link

Error in client application for spydroid using Videoview/mediaplayer #60

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create basic VideoView android application
2. Connecting from this application to another mobile running spydroid
3. Unable to connect to server

What is the expected output? What do you see instead?
Nothing happens... I get an error on logcat on the client application

07-06 13:57:10.638: W/VideoView(11970): Unable to open content: 
rtsp://130.83.105.151:8086/
07-06 13:57:10.638: W/VideoView(11970): java.io.IOException: setDataSource 
failed.: status=0x80000000
07-06 13:57:10.638: W/VideoView(11970):     at 
android.media.MediaPlayer._setDataSource(Native Method)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.media.MediaPlayer.setDataSource(MediaPlayer.java:991)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.media.MediaPlayer.setDataSource(MediaPlayer.java:847)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.widget.VideoView.openVideo(VideoView.java:221)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.widget.VideoView.access$2000(VideoView.java:49)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.widget.VideoView$6.surfaceCreated(VideoView.java:465)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.view.SurfaceView.updateWindow(SurfaceView.java:576)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.view.SurfaceView.access$000(SurfaceView.java:81)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.view.SurfaceView$3.onPreDraw(SurfaceView.java:169)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:590)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1799)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2628)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.os.Looper.loop(Looper.java:137)
07-06 13:57:10.638: W/VideoView(11970):     at 
android.app.ActivityThread.main(ActivityThread.java:4507)
07-06 13:57:10.638: W/VideoView(11970):     at 
java.lang.reflect.Method.invokeNative(Native Method)
07-06 13:57:10.638: W/VideoView(11970):     at 
java.lang.reflect.Method.invoke(Method.java:511)
07-06 13:57:10.638: W/VideoView(11970):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
07-06 13:57:10.638: W/VideoView(11970):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
07-06 13:57:10.638: W/VideoView(11970):     at 
dalvik.system.NativeStart.main(Native Method)

What version of the product are you using? On what operating system?
Spydroid 4.1
Samsung Galaxy Note
Samsung Galaxy Nexus
ICS (4.0.3) on both

Please provide any additional information below.

Works perfectly for spydroid on SII or Note to vlc client on pc or Bsplayer 
light on any one of the android device...But when I am making my own 
application and using a video view... it cannot find the sever... No network 
problems... everybody is on the same network :)
I am attaching a basis videoview and mediaplayer source and layout...
Same thing happens with mediaplayer as well :(

Can you please see the problem and give a quick solution.... Am I writing the 
URL wrong... 

e.g. 
"rtsp://130.83.105.151:8086/"

Original issue reported on code.google.com by fahim.na...@gmail.com on 6 Jul 2012 at 12:15

Attachments:

GoogleCodeExporter commented 8 years ago
Hi man if you find asolution can you please share it, i'm faceing the the same 
problem

Original comment by zohar...@gmail.com on 9 Apr 2013 at 6:15

GoogleCodeExporter commented 8 years ago
Yeah.. I know where the problem is... 
I was using ICS on all these devices...
The rtsp server stack implemented by spydroid is not compatible with the 
mediaplayer framework, apparently this is because of the core api being 
switched to stagefright. Anyways i have an rtsp server stack compatible and 
running on gingerbread... I wasn't able to find time to look at the problem 
with the later builds. The problem lies with an invalid response from the 
player towards rtsp message handshakes. :) You can debug them with wireshark... 

Original comment by fahim.na...@gmail.com on 9 Apr 2013 at 6:28