I am integrate cloud recording with agora and i am facing issue failed to find worker at the time of stop recording

Viewed 17
//this is start request and i am get sid from this   
 const start = await axios.post(
    `https://api.agora.io/v1/apps/2b8e9fdcce0f4ab9ac426dcd0a3acb3c/cloud_recording/resourceid/${resource}/mode/${mode}/start`,
    {
      cname: req.body.channel,
      uid: req.body.uid,
      clientRequest: {
        token: req.body.token,
        recordingConfig: {
          maxIdleTime: 30,
          streamTypes: 2,
          audioProfile: 1,
          channelType: 0,
          videoStreamType: 0,
          transcodingConfig: {
            height: 640,
            width: 360,
            bitrate: 500,
            fps: 15,
            mixedVideoLayout: 1,
            backgroundColor: "#FF0000"
          }
        },
        recordingFileConfig: {
          avFileType: ["hls", "mp4"],
        },
        storageConfig: {
          vendor: 1,
          region: 0,
          bucket: process.env.BUCKET_NAME,
          accessKey: process.env.BUCKET_ACCESS_KEY,
          secretKey: process.env.BUCKET_SECRET_KEY,
          fileNamePrefix: ["directory1", "directory2"],
        },
      },
    },
    { headers: { Authorization } }
  );


//this is stop request and i am get error here failed to find worker

const stop = await axios.post(
    `https://api.agora.io/v1/apps/2b8e9fdcce0f4ab9ac426dcd0a3acb3c/cloud_recording/resourceid/${resource}/sid/${sid}/mode/${mode}/stop`,
    {
      cname: req.body.channel,
      uid: req.body.uid,
      clientRequest: {},
    },
    { headers: { Authorization } }
  );
0 Answers
Related