zoukankan      html  css  js  c++  java
  • 搭建直播系统

    硬件:

      电脑摄像头或手机摄像头

    软件:

      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;  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>

      

  • 相关阅读:
    c# 中textbox 换行符是什么??
    aspnetpager注意事项
    asp 自动弹出窗口
    用递归方法删除文件夹目录及文件
    二维数组的应用
    外边框的样式
    JS 不间断滚动
    单目标 JADE
    在Delphi中使用Action降低水平功能和业务功能的耦合
    关于TListView中的Data属性
  • 原文地址:https://www.cnblogs.com/loge/p/5602439.html
Copyright © 2011-2022 走看看