get-scenes-list 接口

获取画面列表

请求方式

 POST http://ip/mwapi/get-scenes-list

返回数据

JSON 结构如下:

{
  "result": 0,
  "info":{
      "totalCount": 3,
      "audioList":[{...}],
      "sceneList":[{...}]
      } 
}
1. 返回状态
"result": 0
属性 说明
result 返回状态。0:请求成功,返回其它值请参考 API 状态码
totalCount scene items 总数
2. 演示稿音频配置 audioList [{...}]
"audioList":[
            {
                "muted":0,
                "type":1,
                "volume":1000000
            },
            {
                "muted":1,
                "type":2,
                "volume":1000000
            },
            {
                "muted":0,
                "type":3,
                "volume":1000000
            },
            {
                "muted":0,
                "type":4,
                "volume":1000000
            },
            {
                "muted":0,
                "type":5,
                "volume":1000000
            },
            {
                "muted":0,
                "type":6,
                "volume":1000000
            }
        ],
属性 说明
type 音频类型,1:输出 2:监听 3:麦克风 4:背景音乐 5:UAC in 6:线路输入
muted 静音 0:NO 1:YES
volume 音量 0~1000000
3. 当前分页画面列表 sceneList [{...}]
"sceneList":[
            {
                "audioList": [
                    {
                        "layerId": 0,
                        "muted": 0,
                        "type": 256,
                        "volume": 1000000
                    }
                ],
                "dividerLine": {
                    "color": 0,
                    "width": 0,
                    "x1": 500000,
                    "x2": 500000,
                    "y1": 0,
                    "y2": 1000000
                },
                "id": 100,
                "layerList": [
                    {
                        "cropWindow": {
                            "height": 1000000,
                            "type": 0,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "flip": 0,
                        "frame": {
                            "color": 0,
                            "width": 0
                        },
                        "givenBg": 0,
                        "mediaProgress": 0,
                        "rotation": 360,
                        "sourceDuration": 0,
                        "sourceHeight": 1080,
                        "sourceId": 1,
                        "sourceThumbHeight": 144,
                        "sourceThumbWidth": 256,
                        "sourceType": 3,
                        "sourceWidth": 1920,
                        "srcWindow": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "window": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        }
                    },
                    {
                        "cropWindow": {
                            "height": 1000000,
                            "type": 0,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "flip": 0,
                        "frame": {
                            "color": 0,
                            "width": 0
                        },
                        "givenBg": 0,
                        "rotation": 0,
                        "sourceHeight": 0,
                        "sourceId": 0,
                        "sourceThumbHeight": 0,
                        "sourceThumbWidth": 0,
                        "sourceType": 0,
                        "sourceWidth": 0,
                        "srcWindow": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "window": {
                            "height": 0,
                            "width": 0,
                            "x": 0,
                            "y": 0
                        }
                    }
                ],
                "name": "",
                "template": 2,
                "type": 3
            },
            {
                "audioList": [],
                "dividerLine": {
                    "color": 0,
                    "width": 0,
                    "x1": 500000,
                    "x2": 500000,
                    "y1": 0,
                    "y2": 1000000
                },
                "id": 101,
                "layerList": [
                    {
                        "cropWindow": {
                            "height": 1000000,
                            "type": 0,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "flip": 0,
                        "frame": {
                            "color": 0,
                            "width": 0
                        },
                        "givenBg": 0,
                        "rotation": 0,
                        "sourceHeight": 1080,
                        "sourceId": 1001,
                        "sourceThumbHeight": 0,
                        "sourceThumbWidth": 0,
                        "sourceType": 7,
                        "sourceWidth": 1920,
                        "srcWindow": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "thumbHeight": 144,
                        "thumbWidth": 256,
                        "window": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        }
                    },
                    {
                        "cropWindow": {
                            "height": 1000000,
                            "type": 0,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "flip": 0,
                        "frame": {
                            "color": 0,
                            "width": 0
                        },
                        "givenBg": 0,
                        "rotation": 0,
                        "sourceDuration": 0,
                        "sourceHeight": 1080,
                        "sourceId": 2039,
                        "sourceThumbHeight": 0,
                        "sourceThumbWidth": 0,
                        "sourceType": 1,
                        "sourceWidth": 1920,
                        "srcWindow": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "window": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        }
                    }
                ],
                "name": "note",
                "template": 0,
                "type": 4
            },
            {
                "audioList": [
                    {
                        "layerId": 0,
                        "muted": 0,
                        "type": 1280,
                        "volume": 1000000
                    }
                ],
                "bgLayer": {
                    "alpha": 1000000,
                    "cropWindow": {
                        "height": 1000000,
                        "type": 0,
                        "width": 1000000,
                        "x": 0,
                        "y": 0
                    },
                    "flip": 0,
                    "frame": {
                        "color": 0,
                        "width": 0
                    },
                    "givenBg": 0,
                    "mediaProgress": 0,
                    "pdfPosition": 0,
                    "pdfScaleMode": 3,
                    "pdfScaleValue": 10000,
                    "rotation": 0,
                    "sourceColor": 255,
                    "sourceDuration": 0,
                    "sourceHeight": 0,
                    "sourceId": 0,
                    "sourceThumbHeight": 0,
                    "sourceThumbWidth": 0,
                    "sourceTotalPageNumber": 0,
                    "sourceType": 12,
                    "sourceWidth": 0,
                    "srcWindow": {
                        "height": 1000000,
                        "width": 1000000,
                        "x": 0,
                        "y": 0
                    },
                    "videoPolicy": 0,
                    "webScaleValue": 10000,
                    "window": {
                        "height": 1000000,
                        "width": 1000000,
                        "x": 0,
                        "y": 0
                    }
                },
                "dividerLine": {
                    "color": 0,
                    "width": 0,
                    "x1": 500000,
                    "x2": 500000,
                    "y1": 0,
                    "y2": 1000000
                },
                "id": 100,
                "layerList": [
                    {
                        "alpha": 1000000,
                        "cropWindow": {
                            "height": 1000000,
                            "type": 0,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "flip": 0,
                        "frame": {
                            "color": 0,
                            "width": 0
                        },
                        "givenBg": 0,
                        "mediaProgress": 0,
                        "pdfPosition": 400,
                        "pdfScaleMode": 3,
                        "pdfScaleValue": 23468,
                        "rotation": 360,
                        "sourceColor": 255,
                        "sourceDuration": 0,
                        "sourceHeight": 1080,
                        "sourceId": 2004,
                        "sourceThumbHeight": 144,
                        "sourceThumbWidth": 256,
                        "sourceTotalPageNumber": 22,
                        "sourceType": 13,
                        "sourceWidth": 1920,
                        "srcWindow": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "videoPolicy": 0,
                        "webScaleValue": 10000,
                        "window": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        }
                    },
                    {
                        "alpha": 1000000,
                        "cropWindow": {
                            "height": 1000000,
                            "type": 0,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "flip": 0,
                        "frame": {
                            "color": 4294967295,
                            "width": 0
                        },
                        "givenBg": 0,
                        "mediaProgress": 0,
                        "pdfPosition": 0,
                        "pdfScaleMode": 3,
                        "pdfScaleValue": 10000,
                        "rotation": 0,
                        "sourceColor": 255,
                        "sourceDuration": 0,
                        "sourceHeight": 0,
                        "sourceId": 0,
                        "sourceThumbHeight": 0,
                        "sourceThumbWidth": 0,
                        "sourceTotalPageNumber": 0,
                        "sourceType": 0,
                        "sourceWidth": 0,
                        "srcWindow": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "videoPolicy": 0,
                        "webScaleValue": 10000,
                        "window": {
                            "height": 0,
                            "width": 0,
                            "x": 0,
                            "y": 0
                        }
                    }
                ],
                "name": "",
                "template": 2,
                "type": 3
            },
            {
                "audioList": [
                    {
                        "layerId": 0,
                        "muted": 0,
                        "type": 1792,
                        "volume": 1000000
                    }
                ],
                "bgLayer": {
                    "alpha": 1000000,
                    "cropWindow": {
                        "height": 1000000,
                        "type": 0,
                        "width": 1000000,
                        "x": 0,
                        "y": 0
                    },
                    "flip": 0,
                    "frame": {
                        "color": 0,
                        "width": 0
                    },
                    "givenBg": 0,
                    "mediaProgress": 0,
                    "pdfPosition": 0,
                    "pdfScaleMode": 3,
                    "pdfScaleValue": 10000,
                    "rotation": 0,
                    "sourceColor": 255,
                    "sourceDuration": 0,
                    "sourceHeight": 0,
                    "sourceId": 0,
                    "sourceThumbHeight": 0,
                    "sourceThumbWidth": 0,
                    "sourceTotalPageNumber": 0,
                    "sourceType": 12,
                    "sourceWidth": 0,
                    "srcWindow": {
                        "height": 1000000,
                        "width": 1000000,
                        "x": 0,
                        "y": 0
                    },
                    "videoPolicy": 0,
                    "webScaleValue": 10000,
                    "window": {
                        "height": 1000000,
                        "width": 1000000,
                        "x": 0,
                        "y": 0
                    }
                },
                "dividerLine": {
                    "color": 0,
                    "width": 0,
                    "x1": 500000,
                    "x2": 500000,
                    "y1": 0,
                    "y2": 1000000
                },
                "id": 101,
                "layerList": [
                    {
                        "alpha": 1000000,
                        "cropWindow": {
                            "height": 1000000,
                            "type": 1,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "flip": 0,
                        "frame": {
                            "color": 16777215,
                            "width": 0
                        },
                        "givenBg": 0,
                        "mediaProgress": 0,
                        "pdfPosition": 0,
                        "pdfScaleMode": 3,
                        "pdfScaleValue": 10000,
                        "rotation": 360,
                        "sourceColor": 255,
                        "sourceDuration": 0,
                        "sourceHeight": 1080,
                        "sourceId": 2049,
                        "sourceThumbHeight": 144,
                        "sourceThumbWidth": 256,
                        "sourceTotalPageNumber": 0,
                        "sourceType": 14,
                        "sourceWidth": 1920,
                        "srcWindow": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "url": "youku.com",
                        "videoPolicy": 0,
                        "webScaleValue": 10000,
                        "window": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        }
                    },
                    {
                        "alpha": 1000000,
                        "cropWindow": {
                            "height": 1000000,
                            "type": 0,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "flip": 0,
                        "frame": {
                            "color": 0,
                            "width": 0
                        },
                        "givenBg": 0,
                        "mediaProgress": 0,
                        "pdfPosition": 0,
                        "pdfScaleMode": 3,
                        "pdfScaleValue": 10000,
                        "rotation": 0,
                        "sourceColor": 255,
                        "sourceDuration": 0,
                        "sourceHeight": 0,
                        "sourceId": 0,
                        "sourceThumbHeight": 0,
                        "sourceThumbWidth": 0,
                        "sourceTotalPageNumber": 0,
                        "sourceType": 0,
                        "sourceWidth": 0,
                        "srcWindow": {
                            "height": 1000000,
                            "width": 1000000,
                            "x": 0,
                            "y": 0
                        },
                        "videoPolicy": 0,
                        "webScaleValue": 10000,
                        "window": {
                            "height": 0,
                            "width": 0,
                            "x": 0,
                            "y": 0
                        }
                    }
                ],
                "name": "",
                "template": 2,
                "type": 3
            }
        ]
1. 画面
属性 说明
id 画面ID。
name 画面名称。
type 画面类型 4:笔记 其它:画面(不再细分类型)
template 组合模板 0:画中画 1:画面分割 2:单图层画面
dividerLine 分割线属性
layerList 图层列表
bgLayer 图层列表
2. 画面内音频配置
属性 说明
type 音频类型,0x0100:HDMI 1; 0x0200:视频; 0x0300:HDMI 2; 0x0400:USB Camera; 0x0500:图片;0x0700:网页
muted 静音 0:NO 1:YES
volume 音量 0~1000000
3. 分割线 dividerLine
属性 说明
color 分割线颜色 uint32(gbra)
x1 分割线顶点x值
y1 分割线顶点y值
x2 分割线结束点x值
y2 分割线结束点y值
4. 图层 layer
属性 说明
sourceId 源ID。可通过HTTP访问(http://[设备IP]/source/[sourceId])
sourceType 源类型 1: 图片; 2: 视频; 3: HDMI 1; 4: HDMI 2; 5: USB-Camera; 6: 音频; 7: 背景图片; 8: 自动摄像头
sourceWidth 源画面宽度
sourceHeight 源画面高度
sourceDuration 源视频长度
mediaProgress 源播放进度,仅针对VIDEO类型
rotation 旋转角度,逆时针方向,范围[0~360]
flip 翻转属性,0:不翻转 1:左右翻转 2:上下翻转 3:左右翻转+上下翻转
frame 边框属性
window 窗口属性
srcWindow 内容窗口属性
cropWindow 裁剪窗口属性
sourceTotalPageNumber PDF文件页数
pdfPosition PDF图层当前位置,(页码-1)* 100
pdfScaleMode PDF缩放属性,1~5 * 10000
pdfScaleValue PDF缩放模式:0:自由 1:维持页面原比例 2:内容适合屏幕 3:宽度适合屏幕
webScaleValue 网页缩放属性,1~5 * 10000
url 网页地址
videoPolicy 视频播放策略,0:播放一次停止 1:循环播放 2:播放完成后跳转到下一个画面
缩略图 访问地址
PDF图层 http://[设备IP]/pdf/[演示稿ID]/[画面ID]
网页资源主页缩略图 http://[设备IP]/source/[sourceId]/homepage
网页资源当前页缩略图 http://[设备IP]/source/[sourceId]/currentpagehttp://[设备IP]/source/[sourceId]
5. 窗口 window
属性 说明
x x,相对值 (0~1) * 1000,000,下同
y y
width 宽度
height 高度
type 非必要参数,裁剪类型 0:自由比例 1:原始比例 2:4比3 3:16比9 4:1比1

与“”相关结果约

    找不到与“”相关的结果