流视频网站的机器人 [英] Stream video to web in android
问题描述
我想打一个Android应用程序,它可以将视频传输到网络。我知道如何录制android的视频,但不知道如何将它传输到网络。我不想存储此视频到手机的SD卡,但我希望它被存储在网络上。为了这个目的,我计划使用asp.net web服务。
I want to make an android app which can stream video to the web. I know how to record a video in android but don't know how to stream it to the web. I don't want to store this video to the sd card of the phone but I want it to be stored on the web. For that purpose I am planning to use asp.net web service.
推荐答案
我用在previewFrame
的方法摄像机
来实现这一目标。我只是发了字节[]
到服务器,这些数据转换为服务器上的有效视频/图像格式。对于服务器,我用的GStreamer 。
I used onPreviewFrame
method of the Camera
to achieve this. I just send the byte[]
to the server and convert this data to a valid video/image format on the server. For the server, I used gstreamer.
这篇关于流视频网站的机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!