现场视频聊天iPhone和HTTP实时流 [英] Live Video Chat for iPhone and HTTP Live Streaming

查看:269
本文介绍了现场视频聊天iPhone和HTTP实时流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以一般,我想让它拥有iPhone视频聊天功能的应用程序。但很多搜索后,我仍然无法找到任何成功的结果。是否有任何公开或甚至为此事,私有API可用于在iPhone这样做?如果你有一个是答案,请帮助我。

So generally, I want to make an app which has video chat functionality for iPhone. But after many searches, I am still not able to find any successful results. Is there any public or even for that matter, private API available for doing this on iPhone??? If you have an YES answer, please help me.

基本上,我想是读取视频流同时连接聊天的设备。非常感谢提前请,如果你能帮助我。

Basically, what I want is to read the streams of the video on both the devices connected for chatting. Thanks a lot in advance and please help me if you can.

P.S - 我已经检查iDoubs但它失败了,总是显示一些未知的问题,因为这个原因,不允许我连接到任何人。

p.s - I have already checked iDoubs but it failed and always shows some unknown problem and for that reason, doesn't allow me to connect to anyone.

同时建议的方法,我发现是通过HTTP实时流。但是,在太,我有多个疑问。

ALSO : The suggested method I have found is via HTTP Live Streaming. But, in that too, I have multiple doubts.

1)。我需要找到如何从那里我会上传播放我的视频从iPhone到HTTP服务器?

1.) I need to find how do I upload my video from iPhone to the HTTP server from where I would be broadcasting?

2)你能请张贴有关设置服务器的东西吗?我怎么养活视频FFmpeg的服务器?

2.) Can you please post something related to setting up the server? How do I feed the video to the FFMPEG Server?

主要是,我需要找到上传方法。我现在简单地发送将十六进制code中的NSData的形式向服务器和我被困在那里。主要的问题是,它是活的。我该如何处理这个问题?

Mainly, I need to find the upload method. I am right now simply sending hex-code in the form of NSDATA to the server and I am stuck there. The main problem is, It is live. How do I handle that?

这将是最好的,如果你能帮助我使iDoubs正常工作。

It would be best, if you could help me make the iDoubs work properly.

感谢你这么多,任何形式的支持!

Thank you so much for any kind of support!

推荐答案

HTTP实时流主要是从服务器到客户端自适应流的方法。对于客户机到服务器,而走传统的流媒体。存在流媒体开放的图书馆,看到这个问题

HTTP live streaming is primarily an approach for adaptive streaming from server-to-client. For client-to-server rather go for traditional streaming. There exists an open library for streaming, see this question.

虽然有可能FACETIME做双向聊天,现在还不能确定,你将能够使用公共的iOS的API。这就是说,我已经实现了单向流媒体直播的iPhone和困难的部分不是有效载荷的核心流媒体本身,而是编码。你将能够做到在H264 硬件并的 AAC / iLBC的软件。

Whilst it is possible to facetime to do two-way chat, it is not certain that you will be able to using public iOS APIs. That said, I have implemented one-way live streaming for iPhone and the difficult part was not the core streaming itself, but encoding of the payload. You will be able to do H264 in hardware and AAC / iLBC in software.

你怎么想这个喂FFmpeg的取决于你的交通工具,可能是从'文件'H264帧流式H264变化。看看如果实现丢帧H264的帧类型;重新配置H264 EN codeR上即时是不可能的,据我所知,但新鲜的参数重新启动通常不会需要超过一秒钟左右以上。

How you want to feed this to the FFMPEG depends on your transport, possibly changing from 'file' H264 frames to 'streaming' H264. Check out the H264 frame types if you implement frame dropping; reconfiguring the H264 encoder on-the-fly is not possible to my knowledge, but restarting with fresh parameters typically does not take more than a second or so.

你试图回放直播资源,同时捕捉?这是一个很好的起点。如果你遇到了H264编码的开放API,请在这里发表它; - )

Did you attempt to play back a live resource while capturing? That is a good starting point. If you come across an open API for H264 encoding, please post it here ;-)

这篇关于现场视频聊天iPhone和HTTP实时流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆