/tencent-live

Primary LanguageGoMIT LicenseMIT

tencent-live

Build Status GitHub release (latest by date) MIT Licence GitHub code size

腾讯云直播演示工程.

配置文件

  1. appConfig.toml
Port = 20514
ContextPath = ""

PushServer = ""     # 推流地址
PushSecretKey = ""  # 推流密钥
LiveServer = ""     # 直播地址
LiveSecretKey = ""  # 直播密钥

StreamName = ""     # 流名称
Timeout = 3600      # 流过期时间(单位: 秒)
  1. logback.xml
<logging>
    <filter enabled="true">
        <tag>file</tag>
        <type>file</type>
        <level>INFO</level>
        <property name="filename">tencent-live.log</property>
        <property name="format">[%D %T] [%L] (%S) %M</property>
        <property name="rotate">false</property>
        <property name="maxsize">0M</property>
        <property name="maxlines">0K</property>
        <property name="daily">false</property>
    </filter>
</logging>

部署执行

  1. 下载最新的可执行文件压缩包并解压

    下载地址: tencent-live release

$ tar -xvJf tencent-live-[version].[arch].[os].tar.xz
  1. 新建/编辑配置文件, 启动运行
$ nohup ./tencent-live-[version].[arch].[os].bin &