欢迎光临
我们一直在努力

九八云百度小程序教程:LivePlayerContext

  • LivePlayerContext
    • 示例
      • 图片示例
      • 代码示例
    • 错误码
      • Android
      • iOS

    LivePlayerContext

    解释: swan.createLivePlayerContext 的返回值

    示例

    跳转编辑工具

    在开发者工具中打开

    在 WEB IDE 中打开

    扫码体验

    代码示例

    请使用百度APP扫码

    图片示例

    代码示例

    • SWAN
    • JS
    
     
    1. <view class="wrap">
    2. <live-player id="myLive" src="{{src}}"></live-player>
    3. <button type="primary" bind:tap="livePlay">播放</button>
    4. <button type="primary" bind:tap="livePause">暂停</button>
    5. <button type="primary" bind:tap="liveMute">点击静音</button>
    6. <button type="primary" bind:tap="liveResume">恢复</button>
    7. <button type="primary" bind:tap="liveStop">停止</button>
    8. <button type="primary" bind:tap="requestFullScreen">进入全屏</button>
    9. </view>

    错误码

    Android

    错误码 说明

    201

    解析失败,请检查调起协议是否合法

    401

    安全校验失败

    1001

    执行失败

    iOS

    错误码 说明

    202

    解析失败,请检查参数是否正确

    401

    安全校验失败

    未经允许不得转载:九八云安全 » 九八云百度小程序教程:LivePlayerContext