获取直播间详情

获取指定直播间详情

请求路径:/live-platform/v3/live/platform/detail

请求方式:GET

参数要求:

名称 类型 是否必需 描述
liveId String 直播间ID
protocol String 拉流协议:rtmp,flv,hls
streamName String 机位对应的流ID

请求示例:

GET /live-platform/v3/live/platform/detail?liveId=live-832229434458112 HTTP/1.1

返回数据:

名称 类型 是否必需 描述
liveName String 直播间名称,不超过64个字符
liveId String 直播间ID
expectStartTime int 预计开始时间,时间戳,例如1589199293000
expectDurationTime int 预计持续时间,单位:秒
actualStartTime int 实际开始时间,时间戳,例如1589199293000
actualEndTime int 实际结束时间
liveStatus String 教室状态:
ready(就绪)
running(开始)
suspend(暂停)
finished(结束)
published(回放已发布)
inactive(回放已封禁)
workStatus String 工作状态。对应教室状态。running:推流中 stopped:没有流
mediaId String 媒资ID
liveRouteInfos List 线路组信息
├─routeId String 线路ID
├─routeName String 线路名字
├─streamInfo Object 流信息
├─├─cameraName String 机位名称
├─├─cameraType String 机位标识 MASTER:主机位 SLAVE: 副机位
├─├─streamName String 流名称。
├─├─streamStatus String 流状态 running:推流中 stopped:没有流
├─├─pushUrl String 推流地址
├─├─pullUrls List 拉流地址
├─├─├─protocol String 拉流协议,rtmp/flv/hls
├─├─├─resolution String 清晰度,lsd(标清)/lhd(高清)/lud(超清)
├─├─├─resolutionName String 清晰度名称
├─├─├─url String 拉流地址
liveEnterCodes list 进入教室的code集合
├─roleCode String teacher(讲师)
assistant(助教)
student(学生)
headteacher(班主任)
admin(巡视员)
├─enterCode String 进入房间code
imGroupInfo Object IM相关信息
├─imGroupId String im组ID
├─timGroupId String 腾讯IM云的groupId
├─sig String 用户sig
├─roleList list 角色相关信息
├─├─uid String 用户id
├─├─roleType String 角色类型 1:讲师 2.助教 3.班主任 4.管理员
├─├─nickName String 昵称
├─├─userName String 用户真实姓名

返回示例:

{
    "code": 1,
    "msg": "请求成功",
    "data": {
        "liveId": "live-845373363552256",
        "liveName": "1-1直播课",
        "type": "private",
        "memberQuota": 99999,
        "expectStartTime": 1612423800000,
        "expectDurationTime": 600,
        "needIM": true,
        "isPrepare": false,
        "needTransfer": true,
        "needUrlAuth": true,
        "imGroupType": 1,
        "pushUrlTtl": 604800,
        "pullUrlTtl": 604800,
        "needMergePlayback": true,
        "playbackType": 0,
        "rtcStatus": "stopped",
        "liveStatus": "finished",
        "workStatus": "stopped",
        "actualStartTime": 1612424750000,
        "actualEndTime": 1612424933000,
        "mediaId": "media-845373363585024",
        "liveRouteInfos": [
            {
                "routeId": "route-845373364076545",
                "routeName": "线路1",
                "streamInfo": [
                    {
                        "cameraName": "机位1",
                        "cameraType": "MASTER",
                        "streamName": "845373364076544-0",
                        "streamStatus": "stopped",
                        "pushUrl": "rtmp://test-push-aliyun.kaikeba.com/learn/845373364076544-0?auth_key=1613100540-2b2e369dcc7b468ba8ac9007f5d3b92e-0-3697186600b97331c1a8c6aa0cdeefee&custom=sjOU6CNQhPDgou36MjuyHH_jtCrrAAL2dVzhaUCVWZwfGgRCSzGWjraUMzrzrBky9y9eAsDuL1SpIV2RxGajT58q4c1d1v4c38ns2gxj1Lg=",
                        "pullUrls": [
                            {
                                "protocol": "rtmp",
                                "resolution": "org",
                                "resolutionName": "原画",
                                "url": "rtmp://test-play-aliyun.kaikeba.com/learn/845373364076544-0?auth_key=1613100540-cede11d0eb024f39b40b34072d8945c2-0-7430d2b4e2bde5e3dfbb43f4514250d4"
                            },
                            {
                                "protocol": "rtmp",
                                "resolution": "lud",
                                "resolutionName": "超清",
                                "url": "rtmp://test-play-aliyun.kaikeba.com/learn/845373364076544-0_lud?auth_key=1613100540-774769d8d3e04c7185bfeb68842b8d4b-0-5cc85aca755ae48663747ae724d313a8"
                            },
                            {
                                "protocol": "rtmp",
                                "resolution": "lhd",
                                "resolutionName": "高清",
                                "url": "rtmp://test-play-aliyun.kaikeba.com/learn/845373364076544-0_lhd?auth_key=1613100540-9dc9ad58b3f24f7ca59dce5ee4a4fa93-0-c8a7a43761f7470754caf6944dd63ac4"
                            },
                            {
                                "protocol": "rtmp",
                                "resolution": "lsd",
                                "resolutionName": "标清",
                                "url": "rtmp://test-play-aliyun.kaikeba.com/learn/845373364076544-0_lsd?auth_key=1613100540-8d16878e248c47d19ddf8e94935faec1-0-81ff7228e0a7ddb91ffdde8d71aaddc6"
                            },
                            {
                                "protocol": "flv",
                                "resolution": "org",
                                "resolutionName": "原画",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-0.flv?auth_key=1613100540-28ed2a82584848b793e1e28b41b40232-0-7c6ba99174d600e9178956a49167a69a"
                            },
                            {
                                "protocol": "flv",
                                "resolution": "lud",
                                "resolutionName": "超清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-0_lud.flv?auth_key=1613100540-8dde85dc5cbd47f89bcfc9f19de41e31-0-a79bba4e762645d1e7dae1b12b2a228c"
                            },
                            {
                                "protocol": "flv",
                                "resolution": "lhd",
                                "resolutionName": "高清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-0_lhd.flv?auth_key=1613100540-89296274d35448c1803cbdd368ff0398-0-ee677b27ab3bd110c3d5c94d61b2316b"
                            },
                            {
                                "protocol": "flv",
                                "resolution": "lsd",
                                "resolutionName": "标清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-0_lsd.flv?auth_key=1613100540-4b8777e2aea04ce3b181e17cc1b531f1-0-db02f8fb46bc38e66a4f34a6650b1159"
                            },
                            {
                                "protocol": "hls",
                                "resolution": "org",
                                "resolutionName": "原画",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-0.m3u8?auth_key=1613100540-1be6334baffe44b38489c44ef9862679-0-1892894800a53467746948a9ee187636"
                            },
                            {
                                "protocol": "hls",
                                "resolution": "lud",
                                "resolutionName": "超清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-0_lud.m3u8?auth_key=1613100540-6347303f95464070aecbfb2e67b4df00-0-2a413e71832f577dc1591ebdfd101f3f"
                            },
                            {
                                "protocol": "hls",
                                "resolution": "lhd",
                                "resolutionName": "高清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-0_lhd.m3u8?auth_key=1613100540-db1ed64f7ed34083b0b54d8e8f24253f-0-70f8e92de2121b2c35da8d15cbfc7c44"
                            },
                            {
                                "protocol": "hls",
                                "resolution": "lsd",
                                "resolutionName": "标清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-0_lsd.m3u8?auth_key=1613100540-ca32e6c568fd46cbb33d101038fd35a7-0-780b676f3cc5eb19caf932be026747a9"
                            }
                        ]
                    },
                    {
                        "cameraName": "机位2",
                        "cameraType": "SLAVE",
                        "streamName": "845373364076544-1",
                        "streamStatus": "stopped",
                        "pushUrl": "rtmp://test-push-aliyun.kaikeba.com/learn/845373364076544-1?auth_key=1613100540-56ff97f4427d4325b7dd6f1f68200ee8-0-8f330e8602ce9534cbeae39126d7f297&custom=sjOU6CNQhPDgou36MjuyHH_jtCrrAAL2dVzhaUCVWZwfGgRCSzGWjraUMzrzrBky9y9eAsDuL1SpIV2RxGajT58q4c1d1v4c38ns2gxj1Lg=",
                        "pullUrls": [
                            {
                                "protocol": "rtmp",
                                "resolution": "org",
                                "resolutionName": "原画",
                                "url": "rtmp://test-play-aliyun.kaikeba.com/learn/845373364076544-1?auth_key=1613100540-d8c75ed996b743608e49e9ddd064c771-0-34caeb0be4b3dbe383a8578b7ce37606"
                            },
                            {
                                "protocol": "rtmp",
                                "resolution": "lud",
                                "resolutionName": "超清",
                                "url": "rtmp://test-play-aliyun.kaikeba.com/learn/845373364076544-1_lud?auth_key=1613100540-b695625cf01a4d3385dcd81127651937-0-591ba0723beded40d197dbbab72fdbed"
                            },
                            {
                                "protocol": "rtmp",
                                "resolution": "lhd",
                                "resolutionName": "高清",
                                "url": "rtmp://test-play-aliyun.kaikeba.com/learn/845373364076544-1_lhd?auth_key=1613100540-8edf7b8c16ad43d08338c611d8b36fb6-0-8111a0c51da121a18e9e1de8e764afb3"
                            },
                            {
                                "protocol": "rtmp",
                                "resolution": "lsd",
                                "resolutionName": "标清",
                                "url": "rtmp://test-play-aliyun.kaikeba.com/learn/845373364076544-1_lsd?auth_key=1613100540-c68d05c1f3274a59b2e5aeade6c47c84-0-a2c25246bb4b1e6e5d0ce914d81423ac"
                            },
                            {
                                "protocol": "flv",
                                "resolution": "org",
                                "resolutionName": "原画",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-1.flv?auth_key=1613100540-6cd84a05f1d54ce594e500d07b20846a-0-b0fcfca0df79fd78ec7c7fc43f833407"
                            },
                            {
                                "protocol": "flv",
                                "resolution": "lud",
                                "resolutionName": "超清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-1_lud.flv?auth_key=1613100540-fb6b023789714869a7193be37e582f32-0-a1fa17b91c4397606d3a934716a97886"
                            },
                            {
                                "protocol": "flv",
                                "resolution": "lhd",
                                "resolutionName": "高清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-1_lhd.flv?auth_key=1613100540-f8389cccd9ab4444baf3006fda24173f-0-d9027361cfd3dcfc7aff69b124101d55"
                            },
                            {
                                "protocol": "flv",
                                "resolution": "lsd",
                                "resolutionName": "标清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-1_lsd.flv?auth_key=1613100540-0b743188ebec4912bcdea5a37fbf221e-0-707770a580da615a6b6f895fc5bdcaea"
                            },
                            {
                                "protocol": "hls",
                                "resolution": "org",
                                "resolutionName": "原画",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-1.m3u8?auth_key=1613100540-748d07eefa3c4ab6bd90f6e5c1630832-0-5033c2ee55cd092581bf384e5d6cc702"
                            },
                            {
                                "protocol": "hls",
                                "resolution": "lud",
                                "resolutionName": "超清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-1_lud.m3u8?auth_key=1613100540-8cc9363c9139427b9b594f30de4851b4-0-ebe6d6b92a236cc8c9145f45ef58c6cd"
                            },
                            {
                                "protocol": "hls",
                                "resolution": "lhd",
                                "resolutionName": "高清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-1_lhd.m3u8?auth_key=1613100540-20455cc26f934b6491a5770eb1bbb304-0-f551198a8e0b7ebcc9f54f6384cd893b"
                            },
                            {
                                "protocol": "hls",
                                "resolution": "lsd",
                                "resolutionName": "标清",
                                "url": "https://test-play-aliyun.kaikeba.com/learn/845373364076544-1_lsd.m3u8?auth_key=1613100540-9480ff1735a048d8af91e70cdff4d692-0-f6d1e324044a35a64b4beda2fff9b575"
                            }
                        ]
                    }
                ]
            },
            {
                "routeId": "route-845373364076548",
                "routeName": "线路2"
            }
        ],
        "imGroupInfo": {
            "imGroupId": "7612",
            "timGroupId": "@TGS#3WMMUW6G3",
            "sig": "eJyrVgrxCdZLrSjILEpVsjI0NTU1MjAw0AGLlqUWKVkpGekZKEH4xSnZiQUFmSlAdSYGBsYm5hZmZhCZzJTUvJLMtEywBkOY8sx0IM-PqzQoPaokKSU5MDFHOzkzJSAjzM3X0iPK2zg-0sMjwD082bHUTN8roDTbFqqxJDMX5BYzQyMTS1NzE8NaAE3xL6c_",
            "roleList": [
                {
                    "uid": "55080539",
                    "roleType": 2
                },
                {
                    "uid": "55793133",
                    "roleType": 1
                },
                {
                    "uid": "58555586",
                    "roleType": 3
                }
            ]
        },
        "viewConfigInfo": {
            "showCourseWareTag": false
        }
    }
}

results matching ""

    No results matching ""