InnerAudioContext.onEnded

解释:音频自然播放结束事件。

方法参数

Function callback

示例

跳转编辑工具

在开发者工具中打开

在 WEB IDE 中打开

扫码体验

代码示例

百度智能小程序

请使用百度APP扫码

图片示例

InnerAudioContext.onEnded - 图2

代码示例

  • SWAN
  • JS
  1. <view class="wrap">
  2. <view class="card-area">
  3. <view class="title">
  4. 听至音频末尾即可触发事件
  5. </view>
  6. <button type="primary" bindtap="play">点击开始</button>
  7. <button type="primary" bindtap="seekEnded">点击到音频末尾</button>
  8. </view>
  9. </view>