晴川云百度小程序教程: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

    安全校验失败

    原创文章,作者:晴川运维,如若转载,请注明出处:https://baike.qcidc.com/4737.html

    (0)
    晴川运维晴川运维
    上一篇 2025年6月8日
    下一篇 2025年6月8日

    相关推荐

    发表回复

    您的邮箱地址不会被公开。 必填项已用 * 标注