Skip to content

settings_override in call.create has unexpected required props #132

@TimNZ

Description

@TimNZ

Didn't want to create a support ticket if this is a better place to log.

Using call type 'default' in development mode app.
https://dashboard.getstream.io/app/1410477/video/call-types/default

I only want to specify the props I want to override, but the errors indicate a number of props require values.

Having to specify the required props like video.target_resolution on the server doesn't make sense or is practical, or audio.default_device etc.

I can retrieve the call type and merge my settings changes for value for settings_override, but I don't like this extra call.

const createdCall = await call.create({
      data: {
        created_by_id: `user-${caller.id}`,
        custom: customData,
        members: members?.map((m) => ({ user_id: `user-${m.user_id}`, role: m.role })),
        settings_override: {
          video: {
            camera_default_on: true
          },
          audio: {
            
          }

        }
      }
    })
Error:
 - message:  Stream error code 4: GetOrCreateCall failed with error: "data.settings_override.audio.default_device is a required field, data.settings_override.video.target_resolution.height must be 240 or greater, data.settings_override.video.target_resolution.width must be 240 or greater"
 - code:  4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions