streaming a mp4 file using RTSP?

杀马特。学长 韩版系。学妹 提交于 2019-12-13 19:13:31

问题


I am developing an app. that will stream the video recorded from camera and stored as mp4 in sdcard...

I know there something called as RTSP which is used for that... Please tell me where to start . .and is there any library that will do this for me...


回答1:


I do not understand why you want to stream a local mp4 file, but maybe I misunderstood you problem. RTSP is used for live streaming, but you want to play a local mp4 file.

If you want to capture video and save it as mp4 onto a SD card, you need to use the Android MediaRecorder. Here a link to a simple example.

If you just want to playback a local mp4 file. Have a look at the Android API Demos. These are part of the Android SDK installation and contain a good example of how to playback local media files.




回答2:


https://github.com/Kickflip/kickflip-android-sdk does a similar job, but using HLS instead of RTSP.

We'r you able to solve your problem?



来源:https://stackoverflow.com/questions/11204922/streaming-a-mp4-file-using-rtsp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!