Aamir
Aamir

Reputation: 1757

RTSP vs HLS stream ... which one will play smoothly on an android device

I am working on an Android application that is aimed at Tablets only. The min required api level is 3.1. The app will be streaming some live tv channels.

I have tested both RTSP & HLS and both run well. However HLS does not seem to work better and VideoView's onCompletion is called which should not be called as the stream is from live TV which is not yet completed.

I have RTSP & HLS streams urls of each TV channel. I know Android Android 3.0+ supports HLS but i can also play RTSP.

Which one is better than the other and why?

Upvotes: 1

Views: 9412

Answers (2)

Herve Thu
Herve Thu

Reputation: 1267

I tested NexStreaming and it's pretty good. I would say better than Vitamio. But it's not free. You can request a trial SDK via their website. The SDK has some .jar you can access from an Android app, as well as some native (.so) libs where the decoding happens (I guess).

Upvotes: 0

vipw
vipw

Reputation: 7645

RTSP is only supported over UDP. So if your clients are over the internet where there can be packet loss, it's not a good option. But for a local network it's fine.

HLS has pretty weak support in Android, and they seem to break it in a new way with every release. That said, it's probably what you need to use if you're wanting video over the internet. There are some 3rd party libraries available (vitamio and nextreaming) that can allow a more consistent experience across multiple devices and Android versions.

Upvotes: 5

Related Questions