get-osd-config 接口

获取 GFX 配置

请求方式

 POST http://ip/mwapi/get-osd-config
参数 说明
osdId GFX ID
{
  "osdId": 102
}

返回数据

JSON 结构如下:

{
    "message":"SUCCESS",
    "info":{
        "audioList":[

        ],
        "bgLayer":{
            "alpha":1000000,
            "cropWindow":{
                "height":1000000,
                "type":0,
                "width":1000000,
                "x":0,
                "y":0
            },
            "fixed":0,
            "flip":0,
            "frame":{
                "color":0,
                "width":0
            },
            "givenBg":0,
            "mediaProgress":0,
            "pdfPosition":0,
            "pdfScaleMode":3,
            "pdfScaleValue":10000,
            "rotation":0,
            "scaleX":1000000,
            "scaleY":1000000,
            "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,
            "videoPolicyIn":0,
            "videoPolicyNextScene":0,
            "videoPolicyOut":0,
            "videoRangeEnd":0,
            "videoRangeStart":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":108,
        "layerList":[
            {
                "alpha":1000000,
                "cropWindow":{
                    "height":1000000,
                    "type":1,
                    "width":1000000,
                    "x":0,
                    "y":0
                },
                "fixed":0,
                "flip":0,
                "fontFamily":"",
                "fontSize":0,
                "frame":{
                    "color":16777215,
                    "width":0
                },
                "givenBg":0,
                "glyph":0,
                "mediaProgress":0,
                "pdfPosition":0,
                "pdfScaleMode":3,
                "pdfScaleValue":10000,
                "rotation":360,
                "scaleX":1030000,
                "scaleY":1030000,
                "sourceColor":255,
                "sourceDuration":0,
                "sourceHeight":292,
                "sourceId":2029,
                "sourceSecondaryType":4,
                "sourceThumbHeight":377,
                "sourceThumbWidth":256,
                "sourceTotalPageNumber":0,
                "sourceType":10,
                "sourceWidth":198,
                "srcWindow":{
                    "height":1000000,
                    "width":1000000,
                    "x":0,
                    "y":0
                },
                "strokeColor":0,
                "strokeWidth":0,
                "text":"",
                "textAlignment":1,
                "textColor":0,
                "videoPolicy":0,
                "videoPolicyIn":0,
                "videoPolicyNextScene":0,
                "videoPolicyOut":0,
                "videoRangeEnd":0,
                "videoRangeStart":0,
                "webScaleValue":10000,
                "window":{
                    "height":795370,
                    "width":303646,
                    "x":348438,
                    "y":100926
                }
            },
            {
                "alpha":1000000,
                "cropWindow":{
                    "height":1000000,
                    "type":1,
                    "width":1000000,
                    "x":0,
                    "y":0
                },
                "fixed":0,
                "flip":0,
                "fontFamily":"sans-serif",
                "fontSize":26,
                "frame":{
                    "color":16777215,
                    "width":0
                },
                "givenBg":0,
                "glyph":0,
                "mediaProgress":0,
                "pdfPosition":0,
                "pdfScaleMode":3,
                "pdfScaleValue":10000,
                "rotation":360,
                "scaleX":1000000,
                "scaleY":1000000,
                "sourceColor":255,
                "sourceDuration":0,
                "sourceHeight":85,
                "sourceId":2033,
                "sourceSecondaryType":5,
                "sourceThumbHeight":46,
                "sourceThumbWidth":256,
                "sourceTotalPageNumber":0,
                "sourceType":10,
                "sourceWidth":472,
                "srcWindow":{
                    "height":1000000,
                    "width":1000000,
                    "x":0,
                    "y":0
                },
                "strokeColor":65280,
                "strokeWidth":1,
                "text":"在此输入文字",
                "textAlignment":0,
                "textColor":16711680,
                "videoPolicy":0,
                "videoPolicyIn":0,
                "videoPolicyNextScene":0,
                "videoPolicyOut":0,
                "videoRangeEnd":0,
                "videoRangeStart":0,
                "webScaleValue":10000,
                "window":{
                    "height":77778,
                    "width":232292,
                    "x":630729,
                    "y":811111
                }
            }
        ],
        "name":"",
        "template":2,
        "type":5
    },
    "status":0
}
1. GFX 图层
属性 说明
fixed 是否为模版图层,0:否 1:是
sourceType 资源类型 10:GFX 资源
secondaryType 4:图片 5: 文字
x srcWindow.x, 0~1000000
y srcWindow.y, 0~1000000
width srcWindow.width, 0~1000000
height srcWindow.height, 0~1000000
alpha 不透明度,0~1000000
text 文本内容,文字 GFX时,必要参数
textAlignment 文本对齐方式,文字 GFX 时,必要参数.
TEXT_ALIGNMENT_LEFT = 0,
TEXT_ALIGNMENT_CENTER = 1,
TEXT_ALIGNMENT_RIGHT = 2
textColor 文本颜色,文字 GFX 时,必要参数
fontSize 字体大小,文字 GFX 时,必要参数
fontFamily 字体,文字 GFX 时,必要参数
glyph 文本形状,文字 GFX 时,必要参数.
FONT_GLYPH_NONE = 0x0,
FONT_GLYPH_ITALICS = (0x1LL << 1),
FONT_GLYPH_UNDERLINE= (0x1LL << 2),
FONT_GLYPH_BOLD= (0x1LL << 3)
strokeColor 文字描边颜色,文字 GFX 时,必要参数
strokeWidth 文字描边线宽,文字 GFX 时,必要参数
scaleX X轴缩放比例, 0~1000000
scaleY Y轴缩放比例, 0~1000000

与“”相关结果约

    找不到与“”相关的结果