Manage Types

Read call types

client.video.listCallTypes();

//or
client.getCallType({ name: 'livestream' });

Create call type

client.video.createCallType({
  name: 'allhands',
  settings: {
    audio: { mic_default_on: true, default_device: 'speaker' },
  },
  grants: {
    admin: [
      VideoOwnCapability.SEND_AUDIO,
      VideoOwnCapability.SEND_VIDEO,
      VideoOwnCapability.MUTE_USERS,
    ],
    user: [VideoOwnCapability.SEND_AUDIO, VideoOwnCapability.SEND_VIDEO],
  },
});

Update call type

client.video.updateCallType({
  name: 'allhands',
  settings: {
    audio: { mic_default_on: false, default_device: 'earpiece' },
  },
});

Delete call type

client.video.deleteCallType({ name: 'allhands' });
© Getstream.io, Inc. All Rights Reserved.