Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agora cloud recording's best fit layout is not working properly #341

Open
noob0701 opened this issue Mar 10, 2023 · 1 comment
Open

Agora cloud recording's best fit layout is not working properly #341

noob0701 opened this issue Mar 10, 2023 · 1 comment

Comments

@noob0701
Copy link

I am using agora for live streaming, there can be multiple host in a stream like a video call, and using agora cloud recording to record the stream, but in my recordings screen is not splitting up properly according to number of users, i am using bestFitLayout in which i have to pass height and width every time a user joins or leave the stream. Is their any way that agora can dynamically get height and width?

I am using this url ${agoraUrl}/resourceid/${resourceId}/mode/mix/start to start cloud recording.

        cname: channelName,
        uid: uid,
        clientRequest: {
            token: token,
            recordingConfig: {
                channelType: 0,
                streamTypes: 2,
                audioProfile: 1,
                videoStreamType: 0,
                maxIdleTime: 120,
                transcodingConfig:
                {
                    height: 360,
                    width: 640,
                    bitrate: 500,
                    fps: 15,
                    mixedVideoLayout: 1
                }
            },
            recordingFileConfig: {
                avFileType: [
                    "hls",
                    "mp4"
                ]
            },
            storageConfig: {
                vendor: 1,
                region: 14,
                bucket: process.env.AWS_S3_RAW_BUCKET_NAME,
                accessKey: process.env.AWS_ACCESS_KEY_ID,
                secretKey: process.env.AWS_SECRET_KEY,
                fileNamePrefix: [
                    channelName,
                    sidLength
                ]
            }
        }
    }```
I want cloud recording to dynamically split screen according to number of users.
@plutoless
Copy link
Contributor

            transcodingConfig:
            {
                height: 360,
                width: 640,
                bitrate: 500,
                fps: 15,
                mixedVideoLayout: 1
            }

if you are talking abt this, this is canvas resolution, not video's. when you say it's not split up the screens by user properly, do you have an example screenshot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants