Agora 云录制未启动 [英] Agora cloud recording not starting

查看:59
本文介绍了Agora 云录制未启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注 Agora Cloud Recording RESTful apis

问题是

  1. 获取 api 工作正常
  2. 启动 api 工作正常

现在查询 api 正在返回我

Now query api is returning me

{
    "resourceId": "rid",
    "sid": "sid",
    "serverResponse": {
        "status": 4,
        "fileList": "",
        "fileListMode": "string",
        "sliceStartTime": 0
    }
}

并停止 api 给我

{
    "resourceId": "rid",
   "sid": "sid",
    "code": 435
}

这意味着频道中没有人.但是我正在进行的频道中有 2 个用户

which means no one is present in channel. But 2 users are there in my ongoing channel

我的开始请求是

{
    "cname":"80f350442cb2a26ccacb5cfb058c6e82", 
    "uid":"936239554",       // userid who i want to record...is this correct????
    "clientRequest":{
         "token": "temp_token_generated_from_agora_console",
          "recordingConfig":{
            "channelType":0,
            "streamTypes":2,
            "audioProfile":1,
            "videoStreamType":0,
            "maxIdleTime":120,
            "transcodingConfig":{
                "width":360,
                "height":640,
                "fps":30,
                "bitrate":600,
                "maxResolutionUid":"1",
                "mixedVideoLayout":1
                }
            },
            "subscribeVideoUids": ["936239554"],    // is this correct?? 
            "subscribeAudioUids": ["936239554"],    //is this correct??
        "storageConfig":{
            "vendor":1,
            "region":14,
            "bucket":"my_bucket_name",
            "accessKey":"xxxx",
            "secretKey":"xxxx"
        }   
    }
} 

推荐答案

在使用 Agora Cloud Recording 服务时,Recorder 实例需要有自己的唯一 ID,用于加入频道并记录在其中定义的其他用户请求的 subscribeVideoUids": 部分.

When using Agora's Cloud Recording service, the Recorder instance needs to have its own unique ID that it uses to join the channel and record the other users that are defined in the "subscribeVideoUids": portion of the request.

在下面的代码片段中,第一个 UID 是记录器用来加入频道的唯一 UID.这不是您要记录的用户的 UID.

In the code snippet below first UID is meant to be unique for the Recorder to use to join the channel.This is not meant to be the UID for the user you wish to record.

 "cname":"80f350442cb2a26ccacb5cfb058c6e82", "uid":"936239554", // userid who i want to record...is this correct????

如果用户的 UID 是,936239554" 那么记录器应该有一个不同/唯一的值,即使只是在末尾添加一个整数 9362395541" 是够了.

if the user's UID is , "936239554" then the recorder should have a different/unique value even just adding an integer to the end "9362395541" is enough.

我是"subscribeVideoUids""subscribeAudioUids",您需要包含您想要录制的频道中用户的所有UID.因此,如果频道中有两个用户,请将每个 UID 作为 Array 的一个元素包含在内.

Im the "subscribeVideoUids" and "subscribeAudioUids" you'll want to include all the UID's of the users in the channel that you want to record. So if there are two users in the channel, include each UID as an element of the Array.

"subscribeVideoUids": ["936239554"],"subscribeAudioUids": ["936239554"],

这篇关于Agora 云录制未启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆