1 Star 11 Fork 7

umnet.cn / um_video_webrtc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
LGPL-3.0

联信UMWebRTC视频服务系统

2019-10-15 Ver0.90.1015

做世界最小最简便的视频服务器

整个系统小巧、灵活,主程序1M,运行内存4-5M,基于联信UmNode运行Lua语言执行,堪称世界最小最简便的视频服务器,让每位可以轻松搭建自己的WebRTC视频服务系统,也可简单嵌入自己的项目、软件中增加视频对话、视频会议服务。

一、如何运行?

1.点击 run.bat 运行WebRTC视频服务器

自动弹出默认浏览器视频访问页面 ( 类似https://192.168.1.xx:10508/index.html ),可以用手机扫二维码用手机参与视频,安卓手机支持良好。

注:

  • a.本地内部打开需要https认证服务,不同浏览器会有不同的安全提示,选择继续执行即可。
  • b.本视频不包含硬件MCU服务,提供软视频点对点连接。
  • c.建议用Firefox、Google Chrome或Chrome内核兼容浏览器运行,支持安卓手机微信扫码直接参与视频,苹果IOS做了一定限制,需封装独立的APP运行。

2.点击 stop.bat 关闭WebRTC视频服务器

二、公网演示体验地址:

https://open.umnet.cn/webrtc/

本网址为公网测试体验网址,提供https安全认证,可浏览器直接执行。

三、如何调用?

1. 房间连接的格式

  • 第一种房间、密码格式:
    https://主机地址:端口/?roomid=房间名&pwd=密码

需要在链接上指定两个参数,roomid和pwd。其中Pwd是可选的。如果两者全都给出了值,则视频页面会自动加入房间为roomid,且密码为pwd的视频会议中; 若pwd不指定,仅指定roomid,则视频页面会转到登录页面,提示用户输入密码;若两个参数都不指定,则视频页面会转入登录页面,并提示用户输入房间名和密码。

  • 第二种令牌格式:
     https://主机地址:端口/?h=令牌

需要在链接上指定一个参数 h。 它是通过调用umroom.js中的接口getRoomId来按照一定规则生成的,并且在进入视频会议页面时会主动进行验证,防止人为生成的非法字符。getRoomId方法需要用javascript调用,在引入umroom.js后,通过下面的代码片断来生成参数h:

    // roomid: 房间名称或房间号
    // password: 房间密码
    // 返回: 加入房间的令牌字符串,可通过把令牌附加在Url的h参数上,直接进入此房间
    var h = getRoomId(roomid, password);

2. Web 网页集成方式

在服务器上运行WebRTC视频服务器后,就可以在任意页面通过第1步中指定格式的URL链接跳转到视频会议页面,来进行一对一视频或是多人视频。

2.1 例如在如下页面,通过点击加入视频会议:

a. 指定房间登录密码方式

    <html>
    <body>
        <a href="https://主机地址:10508/?roomid=11111">进入视频会议</a>
    </body>
    </html>

b. 指定房间、密码自动登录方式

    <html>
    <body>
        <a href="https://主机地址:10508/?roomid=11111&pwd=12345">进入视频会议</a>
    </body>
    </html>

c. 令牌自动登录方式

    <html>
    <body>
        <a href="https://主机地址:10508/?h=6512bd43d9caa6e02c990b0a82652dca1069763634">进入视频会议</a>
    </body>
    </html>
  • 2.2 在WebRTC视频服务器登录页上,生成共享链接后,把生成的链接通过微信或短信分享给朋友,对方就可以直接点击此链接加入视频会议了。

技术咨询请联系:

GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.

简介

让大家可以轻松搭建自己的WebRTC视频服务系统,也可简单嵌入自己的项目、软件中增加视频对话、视频会议服务。 展开 收起
JavaScript 等 5 种语言
LGPL-3.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/umnet_admin/um_video_webrtc.git
git@gitee.com:umnet_admin/um_video_webrtc.git
umnet_admin
um_video_webrtc
um_video_webrtc
master

搜索帮助