VideoContext.sendDanmu

    Object object

    示例

    请使用百度APP扫码

    VideoContext.sendDanmu - 图3

    • 在 js 文件中
    1. data: { },
    2. onLoad() {
    3. const videoContext = swan.createVideoContext('myVideo');
    4. },
    5. sendDanmu() {
    6. text: '这是一条弹幕',
    7. color: '#f60'
    8. });
    9. });