ZhuChaozheng / spydroid-ipcamera

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

no one app on play can to play stream from spydroid #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use MXVideoPlayer and open network flow... nothin!
2. Use MoboPlayer and open network flow... nothin!
3. Use RTSP Player and open network flow... nothin!
..etc

VideoView API also can't play stream.

What is the expected output? What do you see instead?
-The video stream

What version of the product are you using? On what operating system?
Version 3.3.

Please provide any additional information below.
I only can get stream using VLC on PC.

Original issue reported on code.google.com by gili...@gmail.com on 7 Jun 2012 at 5:18

GoogleCodeExporter commented 8 years ago
More information:
I'm using a tablet xoom running ICS 4.0.3, try to stream to xperia x8 running 
2.3.7.

after I try the inverse, x8 streaming to tablet... and again nothing!

I try all codecs mode but also not work to stream android to android.

Original comment by gili...@gmail.com on 7 Jun 2012 at 5:20

GoogleCodeExporter commented 8 years ago
Hi !

Could you give me some logs ? Show me what's the output of logcat when you 
connect to spydroid with a VideoView

Thanks !

Original comment by FyHertz on 7 Jun 2012 at 3:32

GoogleCodeExporter commented 8 years ago
Hello!

Here is the log, I try using both sides:
ICS 4.04 streaming to 2.3.7 
2.3.7 streaming to ICS 4.0.4

the VideoView source is:
myVideoView.setVideoURI(Uri.parse(path));
myVideoView.setMediaController(new MediaController(context));
myVideoView.requestFocus();
myVideoView.start();

I was able to stream using this code from rstp link like 
"rtsp://217.146.95.166:554/playlist/ch12zqcif.3gp"

Original comment by gili...@gmail.com on 7 Jun 2012 at 5:02

Attachments:

GoogleCodeExporter commented 8 years ago
I again!
The least comment I was trying with H263 in both sides(xperia x8 only can 
stream using h263, VLC works fine!)

Now I do test with H264 streaming from xoom 4.0.4 to 2.3.7(xperia x8) I think 
that it can decode h264, but I get error.

If SpyDroid can to stream to VideoView will be a revolution man! hehe

sorry my bad english ;)

Original comment by gili...@gmail.com on 7 Jun 2012 at 5:48

Attachments:

GoogleCodeExporter commented 8 years ago
Pkay, i have spotted a bug. The client_port is ignored in SETUP request so 
ViewClient is probably listening on a wrong port. I was actually aware of this 
one but did not took the time to do anything about it yet.
I will commit a fix next week !

Original comment by FyHertz on 8 Jun 2012 at 2:35

GoogleCodeExporter commented 8 years ago
It means that the server can be send a port number to client but registering 
another number is it?

Original comment by gili...@gmail.com on 8 Jun 2012 at 2:42

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes :/

Original comment by FyHertz on 8 Jun 2012 at 3:36

GoogleCodeExporter commented 8 years ago
Done !
Tell me if it works now :)

Original comment by FyHertz on 10 Jun 2012 at 12:11

GoogleCodeExporter commented 8 years ago
Hi!
Greate!
With your fix now MXVideoPlayer can to play perfectly (only SW mode, not HW). I 
was able to stream using VideoView two or three times, many times I get 
ArrayIndexOutOfBoundsException on H264Packetizer. When I can connect with 
VideoView the time to start is around 2 minutes! and the delay continues with 2 
minutes.
But is working (sometimes) and it is already very good!

Original comment by gili...@gmail.com on 10 Jun 2012 at 6:27

GoogleCodeExporter commented 8 years ago
After some tests, I discovered that the delay is caused by audio stream, when 
disabled the video stream starts after 10 sec and works in all resolutions for 
H264.
H263 not works on VideoView, I try all resolutions, framerates and bitrates, in 
both devices (tablet ICS and x8 2.3.7), the error occurs after DESCRIBE method, 
SETUP not is invoked.
When audio is enabled the delay is around 2 min and the video is laggy even 
with minimum resolution. I think that can be problem of x8 (600mhz), but is not 
probably because it can play 480p mp4 videos easily, I cant try on tablet 
because x8 only encode h263 e my VideoView not works to play h263(dont ask me 
why).

Original comment by gili...@gmail.com on 10 Jun 2012 at 9:03