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#多线程学习(四) 多线程的自动管理(线程池)
    CHR6dm 校准软件下载
    WinAPI打开串口失败
    AHRS(航姿参考系统)和IMU(惯性测量单元)的区别【转】
    课程1:开始Direct3D
    CHR6dm datasheet 中文翻译
    从D3D将画面渲染至桌面
    Hello GPU
    linux配置java环境变量(详细)
    java中的多线程
  • 原文地址:https://www.cnblogs.com/loge/p/5602439.html
Copyright © 2011-2022 走看看