jeremyjia / Games

Home Page Link:
https://jeremyjia.github.io/Games/
3 stars 8 forks source link

Json2word接口测试案例 #1012

Open jeremyjia opened 8 months ago

jeremyjia commented 8 months ago

展示json2word接口的测试案例

jeremyjia commented 8 months ago

{ "request": { "version": "0.0.2", "description": "json2word测试用例1", "width": 1024, "height": 768, "music": "1.mp3", "rate": "1", "frames": [ { "number": "1", "time": 3, "objects": [ { "text": "春眠不觉晓", "x": 200, "y": 200, "size": 30, "color": "255,12,0" }, { "text": "处处闻啼鸟", "x": 200, "y": 300, "size": 50, "color": "0,255,0" }, { "text": "夜来风雨声", "x": 200, "y": 400, "size": 30, "color": "0,25,255" }, { "text": "花落知多少", "x": 200, "y": 500, "size": 50, "color": "70,12,23" }, { "picture": "x1.jpg", "x": 500, "y": 300, "width":400, "heigth":300 } ], "backgroundColor": "72,61,139" }, { "number": "2", "time": 3, "objects": [ { "picture": "hyl.png", "x": 100, "y": 200, "width":600, "heigth":400 }, { "text": "锄禾日当午", "x": 200, "y": 200, "size": 60, "color": "250,240,10" }, { "text": "汗滴禾下土", "x": 200, "y": 300, "size": 30, "color": "250,55,0" }, { "text": "谁知盘中餐", "x": 200, "y": 400, "size": 25, "color": "20,25,25" }, { "text": "粒粒皆辛苦", "x": 200, "y": 500, "size": 35, "color": "70,12,123" } ], "backgroundColor": "22,51,79" } ] } }

jeremyjia commented 8 months ago

{ "request": { "version": "0.0.3", "description": "json2word-hyperlink测试用例", "width": 1024, "height": 768, "music": "1.mp3", "rate": "1", "frames": [ { "number": "1", "time": 3, "objects": [ { "text": "小笛的歌单", "x": 200, "y": 100, "size": 60, "color": "0,200,200" }, { "hyperlink": "大约在冬季1234333333333333333333333333333大约在冬季123433333333333333333333333333366666666666666666666666666", "x": 200, "y": 200, "size": 30, "color": "255,215,0", "link": "https://jeremyjia.github.io/Games" }, { "hyperlink": "童年", "x": 200, "y": 300, "size": 30, "color": "0,255,0", "link": "https://jeremyjia.github.io/Games" }, { "hyperlink": "光阴的故事", "x": 200, "y": 400, "size": 30, "color": "0,25,255", "link": "https://jeremyjia.github.io/Games" }, { "hyperlink": "驿动的心", "x": 200, "y": 500, "size": 50, "color": "70,12,23", "link": "https://jeremyjia.github.io/Games" } ], "backgroundColor": "72,61,139" } ] } }

jeremyjia commented 3 months ago

{ "request": { "version": "0.0.16", "description":"光阴的故事测试", "width": 1024, "height": 768, "music": "gydgs.mp3", "rate": "3", "frames": [ { "number": "1", "time": "${VAR_FRAMES}", "objects": [ { "text": "${VAR_TITLE}", "x": 100, "y": 300, "size": 60, "color": "70,130,120", "layer": 2 } ], "backgroundColor": "200,200,222" } ], "superObjects": [ { "type": "subtitle", "frameRange": "(1,${VAR_FRAMES})", "attribute": { "script": "${VAR_LRC_PATH}", "x1": 20, "y1": 670, "size": 30, "color": "20,82,190" }, "layer": 1 } ], "overlay":{ "script": "overlayVideo.py", "video": "https://jeremyjia.github.io/Games/img/mmexport1624376890764.mp4", "left": "-1", "top": "-1", "start": "1", "end": "60" }, "Macros": [ { "name": "VAR_TITLE", "value": "LRC歌词及视频叠加演示" }, { "name": "VAR_LRC_PATH", "value": "gydgs.lrc" } ] } }

jeremyjia commented 3 months ago

{ "request": { "version": "0.0.16", "description":"光阴的故事歌词满天飞", "width": 1024, "height": 768, "music": "gydgs.mp3", "rate": "3", "frames": [ { "number": "1", "time": "${VAR_FRAMES}", "objects": [ { "text": "${VAR_TITLE}", "x": 100, "y": 300, "size": 60, "color": "70,130,120", "layer": 2 } ], "backgroundColor": "200,200,222" } ], "superObjects": [ { "type": "subtitle", "frameRange": "(1,${VAR_FRAMES})", "attribute": { "script": "${VAR_LRC_PATH}", "random":"true", "x1": 20, "y1": 670, "size": 30, "color": "20,82,190" }, "layer": 1 } ], "overlay":{ "script": "overlayVideo.py", "video": "https://jeremyjia.github.io/Games/img/mmexport1624376890764.mp4", "left": "-1", "top": "-1", "start": "1", "end": "60" }, "Macros": [ { "name": "VAR_TITLE", "value": "LRC歌词及视频叠加演示" }, { "name": "VAR_LRC_PATH", "value": "gydgs.lrc" } ] } }