美文网首页
audio call

audio call

作者: 冰淤 | 来源:发表于2018-05-22 16:36 被阅读69次

// audio player status code

  /**
   0: 'init'
   1: 'loading'
   2: 'play'
   3: 'pause'
   4: 'complete'
   5: 'error'
   */

1:App call JS 修改 audio 的播放状态

{
  "func": "emit",
  "args": {
    "event": "change-audio-play-status",
    "args": {
      "status": "Integer",
      "id": "Integer"
    }
  }
}

2:App call JS 修改 audio 的播放 id

{
  "func": "emit",
  "args": {
    "event": "change-audio-play-id",
    "args": {
      "id": "Integer"
    }
  }
}

3:Js call App 设置要播放的 audio id

{
  "func": "Audio.Instance.SetAudioItem",
  "args": {
    "id": "Integer",
    "list": "JSON",
    "book": "Object or null"
  }
}

4:Js call App 修改音频的状态

{
  "func": "Audio.Instance.ChangeAudioPlayStatus",
  "args": {
    "status": "Integer",
    "id": "Integer",
    "list": "JSON",
    "book": "Object or null"
  }
}

5:App call JS 购买文章

{
  "func": "emit",
  "args": {
    "event": "buy-note-from-audio",
    "args": {
      "noteId": "Integer"
    }
  }
}

6:App call JS 购买连载

{
  "func": "emit",
  "args": {
    "event": "buy-book-from-audio",
    "args": {
      "bookId": "Integer"
    }
  }
}

相关文章

网友评论

      本文标题:audio call

      本文链接:https://www.haomeiwen.com/subject/mcqkjftx.html