fyhertz / spydroid-ipcamera

A powerful and funny android app. that streams the camera and microphone of your phone to your browser or to VLC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latency will accumulate.

c4nking opened this issue · comments

When open a client with VideoView, the latency is about 5~6 sec, as the time goes by, latency increased. after 0.5hour, latency will be about 50 sec.

Maybe the time stamp is wrong?

I am also trying to make an Android device act as a client but using MediaPlayer in conjunction with a TextureView, and I noticed a similar issue with one difference. Eventually the client's latency will reverse and start to catch up to the server until it is almost displaying real-time, and suddenly the client's video will freeze. After an unspecified amount of time, the client's video resumes with a delay of several seconds. A couple of times the delay has reached 30 seconds, but most of the time the delay only reaches 10 seconds before it reverses. Also, the client's video usually freezes for several minutes before it can resume.

I also noticed that this behavior is not exhibited on all devices. I managed to try this on Google Nexus 4, Google Nexus 7, Samsung Galaxy S3, and ASUS Transformer Prime (TF201) and only the Transformer Prime showed this issue.

Are there any ideas what could be causing this issue?

@fletchj2000 : can you please provide me the client side code that you have used :)

Please provide solution for this issue.