如何传输实时视频上使用Flex / ActionScript 3的一个Socket? [英] How to transmit live video over a Socket using Flex / ActionScript 3?

查看:187
本文介绍了如何传输实时视频上使用Flex / ActionScript 3的一个Socket?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求类似于<一href="http://stackoverflow.com/questions/1667913/how-to-stream-video-over-socket-class-or-xmlsocket-with-actionscript">this老问题,2009年。我刚刚重新发布,因为OP是怎么样的2岁,现在的问题是关闭的。

My Requirements are similar to this old question of 2009. I am just re-posting since OP is kind of 2 years old and the question is closed now.

我如何能够传输实时视频流通过使用Flex / ActionScript 3.0中?一个Socket

我在开发的基于P2P架构的工作原理,所以我不能使用FMS进行流媒体直播的应用程序。我看了一下 NetConnection和NetStream类,但不能开始使用它们,因为所有的例子都使用FMS。如何做到这一点?

I am developing an application which works on P2P architecture so I cant use FMS for live media streaming. I have read about NetConnection and NetStream classes but cant start using them since all the examples are using FMS. How I do this ?

其次,我还需要一个合适的库/工具/技术,EN code(安培,比去code)的视频帧之前显示及放大器;发射。为此,我已阅读X264 $ C $立方公分,但使用这种用Flex似乎太复杂了。任何其他的选择吗?

Secondly, I also need a suitable library / tool / technique to encode (& than decode) video frames before displaying & transmitting. For this I have read X264 codec but using this with Flex seems too complicated. Any other alternatives ?

任何补习/博客将有很大的帮助......

Any tutorial / blog will be of great help...

推荐答案

您可以直接将数据发送到远程计算机;然而,这台机器将需要听,除非你使用的是空气,这台机器就需要套接字策略文件。显然不能够直接连接多台机器彼此没有政策文件,迫使你有一个中央服务器,和prevents在浏览器中的P2P聊天/视频/(W / E)应用直线前进的实现。

You can send data directly to a remote machine; yet, that machine would need to be listening, and unless you are using Air, that machine would need a socket policy file. Obviously not being able to connect multiple machines directly to each other without a policy file, forces you to have a central server, and prevents straight forward implementations of in browser p2p chat/video/(w/e) applications.

所以,你必须有一个中央服务器;但是,您不必支付的。

So you have to have a central server; however, you don't have to pay for one.

我知道我读了这个地方,所以我搜索谷歌,并提出了下面的链接。

I knew I had read about this somewhere, so I searched google and came up with the links below.

http://haxe.org/doc/flash/peer2peer

https://github.com/OpenRTMFP/Cumulus

所有你需要的是一个开发人员密钥,即Adobe为免费奉送的:

All you need is a developer key, that Adobe gives away for free at:

https://www.adobe.com/cfusion/entitlement/ index.cfm?E =层云

通过上面虽这么说,你就需要了解一些C ++,以利用这一正确的优势。

With the above being said, you will need to know some c++, in order to take proper advantage of this.

,那么这些文章告诉你该怎么做RTMFP组播组:

If you want to learn how to do something basic to get you started, and you are really just interested in developing something for your local network, then these articles tell you how to do RTMFP as a multicast Group:

http://www.flashrealtime.com/videotutorial-remote-device-controller /

http://www.flashrealtime.com/local-flash-peer-to-peer-communication-over-lan-without-cirrus/

有一吨的东西,你可以用上面的信息办;然而,我会从小事做起。

There is a ton of stuff that you can do with the information above; yet, I would start small.

这篇关于如何传输实时视频上使用Flex / ActionScript 3的一个Socket?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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