简体   繁体   中英

Android Java Video Live Streaming

I'm creating an application that can stream live video from an HTTP url. Is it possible to create a native Android app that can stream live videos directly? Or do I still need a media server to transcode video into a format supported by Android before it is sent from the server to Android via RTSP? Any help would greatly be appreciated. Thank you.

As long as you have a proper rtsp URL for example : rtsp://somewhere/vod/mp4:sample.mp4

You can open an intent by using

Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(your_rtsp_address));
startActivity(browserIntent);

use VideoView . by using VideoView.setVideoURi method you can show streaming.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM