企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
开发者成功调用接口后,系统将返回相关数据信息,平台对此定义了各分类的标准信息返回格式。 >> 需要注意:所有的返回信息(成功/失败),都存在必要字段 "recode",请开发者开发时以此字段的返回码为最终依据进行判断。 > >>每个接口具体返回内容不同,但是整体严格遵照标准信息返回格式进行处理。 **直播类 - 标准返回格式:** ~~~ { "recode":60001, "room_info": { "name":"ApiCloud - MuFeng", "image":"https%3A%2F%2Fxxxxx.com%2Facrpic%2F170101%2F888888_1234.jpg", }, "play_info": { "hls":"http%3A%2F%2Fxxxxx.com%2Flive%2F295140rtm8ItMXBa_550%2Fplaylist.m3u8", }, "time":1483200000 } ~~~ | 参数 | 说明 | | --- | --- | | recode | 返回码 | | room_info | 信息相关 | | play_info | 播放地址 | | time | 返回时间 | **点播类 - 标准返回格式:** ~~~ { "recode":60001, "video_info": { "name":"春节联欢晚会~", "image":"https%3A%2F%2Fxxxxx.com%2Facrpic%2F170101%2F888888_1234.jpg", }, "play_info": { "hls":"http%3A%2F%2Fxxxxx.com%2Flive%2F295140rtm8ItMXBa_550%2Fplaylist.m3u8", }, "time":1483200000 } ~~~ **参数说明** | 参数 | 说明 | | --- | --- | | recode | 返回码 | | video_info | 信息相关 | | play_info | 播放相关 | | time | 返回时间 | **音乐类 - 标准返回格式:** ~~~ { "recode":60001, "music_info": { "song":"遇见", "songer":"孙燕姿", "image":"https%3A%2F%2Fxxxxx.com%2Facrpic%2F170101%2F888888_1234.jpg", }, "play_info": { "hls":"http%3A%2F%2Fxxxxx.com%2Flive%2F295140rtm8ItMXBa_550%2Fxxx.mp3", }, "time":1483200000 } ~~~ **参数说明** | 参数 | 说明 | | --- | --- | | recode | 返回码 | | video_info | 信息相关 | | play_info | 播放相关 | | time | 返回时间 | **工具类 - 标准返回格式:** ~~~ { "recode":60001, "result": { ### 相关信息 ### } "time":1483200000 } ~~~ **参数说明** | 参数 | 说明 | | --- | --- | | recode | 返回码 | | result | 数据总节点 | | time | 返回时间 | **数据类 - 标准返回格式:** ~~~ { "recode":60001, "result": { ### 相关信息 ### } "time":1483200000 } ~~~ **参数说明** | 参数 | 说明 | | --- | --- | | recode | 返回码 | | result | 数据总节点 | | time | 返回时间 |