TakuSemba / RtmpPublisher

Rtmp client on Android. Live Video Streaming.
Apache License 2.0
628 stars 149 forks source link

Slow transmission to server #7

Closed camillocam closed 6 years ago

camillocam commented 6 years ago

The smartphone and server are in LAN and i try with private ip but the transmission is very low, i wait 30 second for view Video on Server. I try with AsyncTask for use another thread but i wait more time ( +/- 25 seconds). When you send package to server, do you use TCP protocol or UDP protocol?. How accelerate send package and encoding video & audio? I need view streaming after max 5 second.

TakuSemba commented 6 years ago

when i tried, the latency was about 5 seconds but it may depend on the device you use.

RTMP uses TCP protocol. please try it with lower bitrate to make it faster.

TakuSemba commented 6 years ago

let me know if you still got the problem