标签:
硬件:
电脑摄像头或手机摄像头
软件:
DroidCam Windows Client 6.0。获取手机摄像头信息,电脑摄像头则不需此应用
Adobe Media Server 5。媒体服务器
Adobe Flash Media Live Encoder 3.2。视频流工具
flowplayer-3.2.18。网页播放插件,需下载相关插件。
步骤一
电脑摄像头可跳过此步骤。
获取视频信息。手机和电脑安装DroidCam客户端,配置后连接。具体方式请问度娘。
步骤二
安装Adobe Media Server 5,配置实例为“live”。
步骤三
配置Adobe Flash Media Live Encoder 3.2
1、“Device”为摄像头设备。
2、FMS URL为“rtmp://localhost/live”,Stream为“livestream”。
3、点击“Connect”。
4、Start
步骤四
页面显示。
<a class="player" style="display: block; width: 480px; height: 270px;" id="player" runat="server"></a> <script language="JavaScript" type="text/javascript" style="z-index: 0;"> flowplayer("player", { src: "../Scripts/flowplayer-3.2.18.swf", wmode: ‘transparent‘ }, { clip: { url: ‘rtmp://localhost/live/livestream‘, //scaling: ‘fit‘, autoPlay: true, // configure clip to use hddn as our provider, referring to our rtmp plugin provider: ‘rtmp‘, live: true, }, // streaming plugins are configured under the plugins node plugins: { // here is our rtmp plugin configuration rtmp: { url: ‘../Scripts/flowplayer.rtmp-3.2.13.swf‘, // netConnectionUrl defines where the streams are found netConnectionUrl: ‘rtmp://localhost/live‘ }, controls: { play: false, opacity: 0, scrubber: false, volume: false, mute: false } } }); </script>
标签:
原文地址:http://www.cnblogs.com/loge/p/5602439.html