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>

      

  • 相关阅读:
    djangorestframework的源码认证流程
    centos7 docker更换源地址(阿里云)
    vue 递归 无限极
    Linux文件属性及如何改变文件属性和权限
    centos7 安装docker
    centos7 mysql5.7 忘记密码
    git push 单个文件时超过100M报错,解决方案
    python中的依赖包--导出与安装
    18-----cmdb需求规划以及表结构设计
    17-----vue前端权限管理
  • 原文地址:https://www.cnblogs.com/loge/p/5602439.html
Copyright © 2011-2022 走看看