txLive模块(直播类)试用分享

txLive 模块封装了腾讯云直播服务css

docs.apicloud.com/Client-API/… 通过试用,这个模块堪称最简单最快速能使用起来的直播模块。 界面上的按钮,根据本身的须要,能够显示和隐藏。带有各类美颜功能(美白、瘦脸、V形脸)。推流的码率和清晰度能够设置。api

使用流程:spa

  1. 注册腾讯云平台
  2. 进行实名认证
  3. 开通直播服务
  4. 生成推流地址(cloud.tencent.com/document/pr…

推流界面截图:scala

<meta charset="utf-8">

<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />

<title>title</title>

<link rel="stylesheet" type="text/css" href="../css/api.css" />

<style>

    body {

        padding-top: 160px;

        height: 1000px;

    }

    .content {

        margin-top: 350px;

    }

    button {

        margin: 10px;

    }

</style>
复制代码
<div class="content">

    <button tapmode type="button" onclick="openPusher()" name="button">openPusher</button>

    <button tapmode type="button" onclick="openPlayer()" name="button">openPlayer</button>

    <button tapmode type="button" onclick="setLiveBtnsVisibility()" name="button">setLiveBtnsVisibility</button>

</div>
复制代码
复制代码
相关文章
相关标签/搜索