Appearance
方法事件
注意
方法事件为组件方法调用后异步回调事件
用法示例
js
function onEventMethod(e : JSONObject) {
console.log("onEvent:" + e.toJSONString())
}js
//事件
onEventMethod(e) {
console.log(e.detail)
}回调示例
json
{
"type": "play",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "pause",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "resume",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "stop",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setScreenScaleType",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "getPlayerData",
"data": {
"message": "",
"code": 0,
"data": {
"header": {
"allowCrossProtocolRedirects": "true",
"User-Agent": "LEVEN",
"ee": "333"
},
"currentPosition": 17783,
"looping": false,
"url": "https://aliyuncdnsaascloud.xjhktv.com/video/A%20Lin%2B%E5%80%AA%E5%AD%90%E5%86%88-%E4%B8%8D%E5%B1%91%E5%AE%8C%E7%BE%8E%5B%E5%9B%BD%5D%5B1080P%5D.mp4",
"isPlaying": true,
"speed": 1,
"scaleType": "SCREEN_TYPE_DEFAULT",
"danmakuCurrentTime": 17903,
"duration": 142656
}
}
}json
{
"type": "setVolume",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "seekTo",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setSpeed",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "taskShotPic",
"data": {
"message": "",
"code": 0,
"data": {
"path": "/storage/emulated/0/Pictures/LevenPlayer/1739351162257.jpg"
}
}
}json
{
"type": "isPlaying",
"data": {
"message": "",
"code": 0,
"data": {
"isPlaying": true
}
}
}json
{
"type": "fullScreen",
"data": {
"message": "",
"code": 0,
"data": { }
}
}json
{
"type": "quitFullScreen",
"data": {
"message": "",
"code": 0,
"data": { }
}
}json
{
"type": "smallVideo",
"data": {
"message": "",
"code": 0,
"data": { }
}
}json
{
"type": "quitSmallVideo",
"data": {
"message": "",
"code": 0,
"data": { }
}
}json
{
"type": "setMute",
"data": {
"message": "",
"code": 0,
"data": { }
}
}json
{
"type": "getDuration",
"data": {
"message": "",
"code": 0,
"data": {
"duration": 144410
}
}
}json
{
"type": "getCurrentPosition",
"data": {
"message": "",
"code": 0,
"data": {
"position": 95821
}
}
}json
{
"type": "getBufferedPercentage",
"data": {
"message": "",
"code": 0,
"data": {
"process": 100
}
}
}json
{
"type": "getSize",
"data": {
"message": "",
"code": 0,
"data": {
"height": 592,
"width": 368
}
}
}json
{
"type": "setRotation",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setTransform",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "clearFilter",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterAutoFix",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterPixelation",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterBlackAndWhite",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterContrast",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterCrossProcess",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterDocumentary",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterDuotone",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterFillLight",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterGamma",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterGrain",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterGrayscale",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterHue",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterInvertColors",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterLamoish",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterPosterize",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterBarrelBlur",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterSaturation",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterSepia",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterTemperature",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterSharpness",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterTint",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterVignette",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterOverlay",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterSampleBlur",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterGaussianBlur",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "setFilterBrightness",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "customFilter",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "startGif",
"data": {
"message": "",
"code": 0,
"data": {
"status": "start"
}
}
}
{
"type": "startGif",
"data": {
"message": "",
"code": 0,
"data": {
"status": "progress",
"total": 81,
"curPosition": 1
}
}
}
{
"type": "startGif",
"data": {
"message": "",
"code": 0,
"data": {
"status": "finish",
"path": "/storage/emulated/0/Pictures/LevenPlayer/1739355354354.gif"
}
}
}json
{
"type": "stopGif",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "clearCache",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "getAllMediaTrack",
"data": {
"message": "",
"code": 0,
"data": {
"list": [
{
"type": 1,
"id": "1",
"length": 1,
"formats": [
{
"maxInputSize": 797,
"sampleRate": 44100,
"sampleMimeType": "audio/mp4a-latm",
"bitrate": 129747,
"language": "und",
"codecs": "mp4a.40.2",
"id": "2",
"channelCount": 2
}
]
},
{
"type": 1,
"id": "2",
"length": 1,
"formats": [
{
"maxInputSize": 815,
"sampleRate": 44100,
"sampleMimeType": "audio/mp4a-latm",
"bitrate": 130036,
"language": "und",
"codecs": "mp4a.40.2",
"id": "3",
"channelCount": 2
}
]
}
]
}
}
}json
{
"type": "changeMediaTrack",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "danmakuShow",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "danmakuHide",
"data": {
"message": "",
"code": 0,
"data": {}
}
}json
{
"type": "addDanmaku",
"data": {
"message": "",
"code": 0,
"data": {}
}
}回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| type | String | 事件类型,请参考下方说明 |
| data | Object | 事件数据 |
| data.code | Integer | 事件结果类型,0.成功,其他:失败 |
| data.data | Integer | 事件结果数据 |
| data.message | String | 事件结果消息 |
回调事件类型说明
开始播放
类型名称
play
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
暂停播放
类型名称
pause
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
继续播放
类型名称
resume
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
停止播放
类型名称
stop
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
设置视频播放比例
类型名称
setScreenScaleType
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
获取播放属性
类型名称
getPlayerData
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| data.header | Object | 网络请求的头信息 |
| data.currentPosition | Integer | 当前播放位置,单位:毫秒 |
| data.looping | Boolean | 是否循环播放 |
| data.url | String | 视频地址 |
| data.isPlaying | Boolean | 是否正在播放 |
| data.speed | Integer | 当前播放速度 |
| data.scaleType | String | 视频播放比例 |
| data.danmakuCurrentTime | Integer | 弹幕播放当前时间,单位:毫秒 |
| data.duration | Integer | 视频时长,单位:毫秒 |
| code | Integer | 返回类型,0.成功,其他:失败 |
设置音量
类型名称
setVolume
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
设置播放进度
类型名称
seekTo
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
设置播放速度
类型名称
setSpeed
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
截图
类型名称
taskShotPic
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| data.path | String | 图片保存路径 |
| code | Integer | 返回类型,0.成功,其他:失败 |
是否正在播放
类型名称
isPlaying
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| data.isPlaying | Boolean | 是否正在播放 |
| code | Integer | 返回类型,0.成功,其他:失败 |
全屏播放
类型名称
fullScreen
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
退出全屏
类型名称
quitFullScreen
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
小窗口播放
类型名称
smallVideo
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
退出小窗口
类型名称
quitSmallVideo
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
是否静音播放
类型名称
setMute
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
获取视频时长
类型名称
getDuration
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| data.duration | Integer | 视频时长,单位:毫秒 |
| code | Integer | 返回类型,0.成功,其他:失败 |
获取当前播放的位置
类型名称
getCurrentPosition
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| data.position | Integer | 当前播放时长,单位:毫秒 |
| code | Integer | 返回类型,0.成功,其他:失败 |
获取当前缓冲百分比
类型名称
getBufferedPercentage
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| data.process | Integer | 当前缓存百分比 |
| code | Integer | 返回类型,0.成功,其他:失败 |
获取视频尺寸
类型名称
getSize
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| data.width | Integer | 视频宽度 |
| data.height | Integer | 视频高度 |
| code | Integer | 返回类型,0.成功,其他:失败 |
旋转
类型名称
setRotation
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
翻转
类型名称
setTransform
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
清除滤镜
类型名称
clearFilter
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
自动修正
类型名称
setFilterAutoFix
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
马赛克
类型名称
setFilterPixelation
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
黑白滤镜
类型名称
setFilterBlackAndWhite
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
对比度
类型名称
setFilterContrast
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
交叉线
类型名称
setFilterCrossProcess
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
纪录片
类型名称
setFilterDocumentary
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
双色调
类型名称
setFilterDuotone
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
补光
类型名称
setFilterFillLight
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
伽马线
类型名称
setFilterGamma
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
纹理
类型名称
setFilterGrain
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
灰度
类型名称
setFilterGrayscale
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
色度
类型名称
setFilterHue
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
反色
类型名称
setFilterInvertColors
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
简单风格
类型名称
setFilterLamoish
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
色调分离
类型名称
setFilterPosterize
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
barrel模糊
类型名称
setFilterBarrelBlur
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
饱和度
类型名称
setFilterSaturation
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
怀旧
类型名称
setFilterSepia
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
温度
类型名称
setFilterTemperature
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
锐度
类型名称
setFilterSharpness
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
色调
类型名称
setFilterTint
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
晕影
类型名称
setFilterVignette
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
重叠
类型名称
setFilterOverlay
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
简单模糊
类型名称
setFilterSampleBlur
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
高斯模糊
类型名称
setFilterGaussianBlur
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
亮度
类型名称
setFilterBrightness
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
自定义滤镜
类型名称
customFilter
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
开始生成gif
类型名称
startGif
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| data.status | String | 状态start:开始生成gifprogress:gif处理进度finish:生成完成 |
| data.total | Integer | gif总帧数,progress状态下返回 |
| data.curPosition | Integer | gif当前处理的帧数,progress状态下返回 |
| data.path | String | gif文件保存路径,finish状态下返回 |
| code | Integer | 返回类型,0.成功,其他:失败 |
结束生成gif
类型名称
stopGif
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
清除缓存
类型名称
clearCache
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
获取所有音轨
类型名称
getAllMediaTrack
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| data.list | Array[Object] | 音轨列表 |
| data.list.type | Integer | 音轨类型 |
| data.list.id | Integer | 音轨id |
| data.list.length | Integer | 音轨格式集合长度 |
| data.list.formats | Array[Object] | 音轨格式集合 |
| data.list.formats.maxInputSize | Integer | 最大输入大小 |
| data.list.formats.sampleRate | Integer | 采样率 |
| data.list.formats.sampleMimeType | String | 音频类型 |
| data.list.formats.bitrate | Integer | 比特率 |
| data.list.formats.language | String | 语言 |
| data.list.formats.codecs | String | 解码器格式 |
| data.list.formats.channelCount | Integer | 通道数量 |
| data.list.formats.id | Integer | id |
| code | Integer | 返回类型,0.成功,其他:失败 |
切换音轨
类型名称
changeMediaTrack
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
开启弹幕
类型名称
danmakuShow
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
关闭弹幕
类型名称
danmakuHide
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
添加弹幕
类型名称
addDanmaku
回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
