Skip to content

Latest commit

 

History

History
104 lines (98 loc) · 26.1 KB

RoomProperties.md

File metadata and controls

104 lines (98 loc) · 26.1 KB

Daily::RoomProperties

Properties

Name Type Description Notes
nbf Integer "Not before". This is a unix timestamp (seconds since the epoch.) Users cannot join a meeting in this room before this time. [optional]
exp Integer "Expires". This is a unix timestamp (seconds since the epoch.) Users cannot join a meeting in this room after this time. More resources: - Add advanced security to video chats with the Daily API [optional]
max_participants Integer How many people are allowed in a room at the same time. ⚠️ Contact us if you need to set the limit above 200. [optional][default to 200]
enable_people_ui Boolean Determines if Daily Prebuilt displays the People UI. When set to true, a People button in the call tray reveals a People tab in the call sidebar. The tab lists all participants, and next to each name indicates audio status and an option to pin the participant. When `enable_people_ui` is set to false, the button and tab are hidden. ⚠️ Has no effect on custom calls built on the Daily call object. [optional]
enable_pip_ui Boolean Sets whether the room can use Daily Prebuilt's Picture in Picture controls. When set to `true`, an additional button will be available in Daily Prebuilt's UI to toggle the Picture in Picture feature. ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object. [optional]
enable_emoji_reactions Boolean Determines if Daily Prebuilt displays the Emoji Reactions UI. When set to `true`, a Reactions button appears in the call tray. This button allows users to select and send a reaction into the call. When set to `false`, the Reactions button is hidden and the feature is disabled. Usage: This feature is a good fit for meetings when a host or presenter would benefit from receiving nonverbal cues from the audience. It's also great to keep meetings fun. ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object. [optional]
enable_hand_raising Boolean Sets whether the participants in the room can use Daily Prebuilt's hand raising controls. When set to `true`, an additional button will be available in Daily Prebuilt's UI to toggle a hand raise. ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object. [optional]
enable_prejoin_ui Boolean Determines whether participants enter a waiting room with a camera, mic, and browser check before joining a call. ⚠️ You must be using Daily Prebuilt to use `enable_prejoin_ui`. [optional]
enable_live_captions_ui Boolean Sets whether participants in a room see a closed captions button in their Daily Prebuilt call tray. When the closed caption button is clicked, closed captions are displayed locally. When set to `true`, a closed captions button appears in the call tray. When set to `false`, the closed captions button is hidden from the call tray. Note: Transcription must be enabled for the room or users must have permission to start transcription for this feature to be enabled. View the transcription guide for more details. ⚠️ You must be using Daily Prebuilt to use `enable_live_captions_ui`. [optional]
enable_network_ui Boolean Determines whether the network button, and the network panel it reveals on click, appears in this room. ⚠️ You must be using Daily Prebuilt to use `enable_network_ui`. [optional]
enable_noise_cancellation_ui Boolean Determines whether Daily Prebuilt displays noise cancellation controls. When set to `true`, a participant can enable microphone noise cancellation during a Daily Prebuilt call. ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object. To learn more about adding noise cancellation to a custom application, see the `updateInputSettings()` docs. [optional]
enable_breakout_rooms Boolean Sets whether Daily Prebuilt’s breakout rooms feature is enabled. When set to `true`, an owner in a Prebuilt call can create breakout rooms to divide participants into smaller, private groups. ⚠️ You must be using Daily Prebuilt to use `enable_breakout_rooms`. ⚠️ This property is in beta. [optional]
enable_knocking Boolean Turns on a lobby experience for private rooms. A participant without a corresponding meeting token can request to be admitted to the meeting with a "knock", and wait for the meeting owner to admit them. [optional]
enable_screenshare Boolean Sets whether users in a room can screen share during a session. This property cannot be changed after a session starts. For dynamic control over permissions, use the `updateParticipant()` method to control user permissions. [optional][default to true]
enable_video_processing_ui Boolean Determines whether Daily Prebuilt displays background blur controls. When set to `true`, a participant can enable blur during a Daily Prebuilt call. ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object. [optional][default to true]
enable_chat Boolean This property is one of multiple ways to add chat to Daily video calls. [optional][default to false]
enable_shared_chat_history Boolean When enabled, newly joined participants in Prebuilt calls will request chat history from remote peers, in order to view chat messages from before they joined. [optional][default to true]
start_video_off Boolean Disable the default behavior of automatically turning on a participant's camera on a direct `join()` (i.e. without `startCamera()` first). [optional][default to false]
start_audio_off Boolean Disable the default behavior of automatically turning on a participant's microphone on a direct `join()` (i.e. without `startCamera()` first). [optional][default to false]
owner_only_broadcast Boolean In Daily Prebuilt, only the meeting owners will be able to turn on camera, unmute mic, and share screen. See setting up calls. [optional][default to false]
enable_recording String Jump to recording docs. [optional][default to '<not set>']
eject_at_room_exp Boolean If there's a meeting going on at room `exp` time, end the meeting by kicking everyone out. This behavior can be overridden by setting `eject` properties of a meeting token. [optional][default to false]
eject_after_elapsed Integer Eject a meeting participant this many seconds after the participant joins the meeting. You can use this is a default length limit to prevent long meetings. This can be overridden by setting `eject` properties of a meeting token. [optional]
enable_advanced_chat Boolean Property that gives end users a richer chat experience. This includes: * Emoji reactions to chat messages * Emoji picker in the chat input form * Ability to send a Giphy chat message ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object. [optional][default to false]
enable_hidden_participants Boolean When enabled, non-owner users join a meeting with a hidden presence, meaning they won't appear as a named participant in the meeting and have no participant events associated to them. Additionally, these participants can only receive media tracks from owner participants. Hidden participants can be tracked using the `participantCounts()` method. Hidden participants do not have entries in the `participants()` method return value. When used with Daily Prebuilt, hidden participants are included in the participant count available in the UI; however, are not included in the People panel and can only read chat messages. This property should be used to support hosting large meetings. See our guide on interactive live streaming for additional instruction. [optional][default to false]
enable_mesh_sfu Boolean Configures a room to use multiple SFUs for a call's media. This feature enables calls to scale to large sizes and to reduce latency between participants. It is recommended specifically for interactive live streaming. See our guide for interactive live streaming for additional instruction. [optional]
sfu_switchover Float Dictates the participant count after which room topology automatically switches from Peer-to-Peer (P2P) to Selective Forwarding Unit (SFU) mode, or vice versa. For example, if `sfu_switchover` is set to `2` and the current network topology is P2P, the topology will switch to SFU mode when the third participant joins the call. If the current topology is SFU, it will switch to P2P mode when the participant count decreases from `2` to `1`. We recommend specifying an integer value for this property except for cases where you would like the room to switch to SFU mode as soon as the first participant joins. In this case, set `sfu_switchover` to `0.5`. See our guide about video call architecture for additional information. [optional][default to 0.5]
enable_adaptive_simulcast Boolean Configures a domain or room to use Daily Adaptive Bitrate. When enabled, along with configuring the client to `allowAdaptiveLayers`, the Daily client will continually adapt send settings to the current network conditions. `allowAdaptiveLayers` is `true` by default; if you haven't modified that setting, then setting `enable_adaptive_simulcast` to `true` will enable Daily Adaptive Bitrate for 1:1 calls. [optional][default to true]
enable_multiparty_adaptive_simulcast Boolean Configures a domain or room to use Daily Adaptive Bitrate. When enabled, along with configuring the client to `allowAdaptiveLayers`, the Daily client will continually adapt send settings to the current network conditions. `allowAdaptiveLayers` is `true` by default; if you haven't modified that setting, then setting `enable_multiparty_adaptive_simulcast` to `true` will enable Daily Adaptive Bitrate for multi-party calls. To use this feature, `enable_adaptive_simulcast` must also be set to `true`. [optional][default to false]
enforce_unique_user_ids Boolean Configures a domain or room to disallow multiple participants from having the same `user_id`. This feature can be enabled to prevent users from &quot;sharing&quot; meeting tokens. When enabled, a participant joining or reconnecting to a meeting will cause existing participants with the same user_id to be ejected. [optional][default to false]
experimental_optimize_large_calls Boolean Enables Daily Prebuilt to support group calls of up to 1,000 participants and owner only broadcast calls of up to 100K participants. When set to true, Daily Prebuilt will: - Automatically mute the local user on joining - Update grid view to show a maximum of 12 users in the grid at a time - Allow only 16 users to be unmuted at the same time. When more than 16 users are unmuted, the oldest active speaker will be automatically muted. See our guide on large real-time calls for additional instruction. ⚠️ This flag only applies to Daily Prebuilt. It has no effect when building custom video applications with the Daily call object. [optional]
lang String The default language of the Daily prebuilt video call UI, for this room. Setting the language at the room level will override any domain-level language settings you have. Read more about changing prebuilt UI language settings. `*` Norwegian `&quot;no&quot;` and Russian `&quot;ru&quot;` are only available in the new Daily Prebuilt. [optional][default to 'en']
meeting_join_hook String Sets a URL that will receive a webhook when a user joins a room. Default is NULL. Character limit for webhook URL is 255. ⚠️ In place of the `meeting_join_hook`, we recommend setting up a webhook and listening for the `participant.joined` event. [optional]
geo String Daily uses signaling servers to manage all of the participants in a given call session. In an SFU/server mode call, the server will send and receive all audio and video from each participant. In a peer-to-peer call, each participant sends media directly to and from each other peer, but a signaling server still manages call state. Daily runs servers in several different AWS regions to minimize latency for users around the world. The job of 'picking' a call server is handled when the first participant joins a room. The first participant's browser connects to a call server using Amazon's Route 53 DNS resolution, which chooses a server in the region closest to them. This isn't always optimal. For example, if one person joins in London, and then ten more people join from Cape Town, the call will still be hosted out of `eu-west-2` . The majority of the participants will have higher latency to the server than if one of them had joined first and the call was being hosted in `af-south-1`. In cases like this, you may want to configure your domain (or a specific room) to always choose a call server in a specific AWS region. Available regions: - `&quot;af-south-1&quot;` (Cape Town) - `&quot;ap-northeast-2&quot;` (Seoul) - `&quot;ap-southeast-1&quot;` (Singapore) - `&quot;ap-southeast-2&quot;` (Sydney) - `&quot;ap-south-1&quot;` (Mumbai) - `&quot;eu-central-1&quot;` (Frankfurt) - `&quot;eu-west-2&quot;` (London) - `&quot;sa-east-1&quot;` (São Paulo) - `&quot;us-east-1&quot;` (N. Virginia) - `&quot;us-west-2&quot;` (Oregon) [optional][default to 'NULL']
rtmp_geo String Used to select the region where an RTMP stream should originate. In cases where RTMP streaming services aren't available in the desired region, we'll attempt to fall back to the default region based on the SFU being used for the meeting. Available regions: - `&quot;us-west-2&quot;` (Oregon) - `&quot;eu-central-1&quot;` (Frankfurt) - `&quot;ap-south-1&quot;` (Mumbai) The default regions are grouped based on the SFU region like so: - RTMP region `&quot;us-west-2&quot;` includes SFU regions: `&quot;us-west-2&quot;`, `&quot;us-east-1&quot;`, `&quot;sa-east-1&quot;` - RTMP region `&quot;eu-central-1&quot;` includes SFU regions: `&quot;eu-central-1&quot;`, `&quot;eu-west-2&quot;`, `&quot;af-south-1&quot;` - RTMP region `&quot;ap-south-1&quot;` includes SFU regions: `&quot;ap-southeast-1&quot;`, `&quot;ap-southeast-2&quot;`, `&quot;ap-northeast-2&quot;`, `&quot;ap-south-1&quot;` [optional][default to 'The closest available region to the SFU region used by the meeting.']
disable_rtmp_geo_fallback Boolean Disable the fall back behavior of rtmp_geo. When rtmp_geo is set, we first try to connect to a media server in desired region. If a media server is not available in the desired region, we fall back to default region based on SFU's region. This property disables this automatic fall back. When this property is set, we will trigger a recording/streaming error event when media worker is unavailable. Also, the client should retry recording/streaming. [optional][default to false]
recordings_bucket RecordingsBucket [optional]
enable_terse_logging Boolean Reduces the volume of log messages. This feature should be enabled when there are more than 200 participants in a meeting to help improve performance. See our guides for supporting large experiences for additional instruction. [optional][default to false]
auto_transcription_settings Object Options to use when `auto_start_transcription` is true. See `startTranscription()` for available options. [optional]
enable_transcription_storage Boolean Live transcriptions generated can be saved as WebVTT. This flag controls if transcription started with `startTranscription()` should be saved or not. [optional][default to false]
transcription_bucket TranscriptionBucket [optional]
recordings_template String Cloud recordings are stored in either Daily's S3 bucket or the customer's own S3 bucket. By default recordings are stored as `{domain_name}/{room_name}/{epoch_time}`. Sometimes, the use case may call for custom recording file names to be used (for example, if you'd like to enforce the presence of the .mp4 extension in the file name). `recordings_template` is made up of a replacement string with prefixes, suffixes, or both. The currently supported replacements are: - `epoch_time`: The epoch time in seconds (mandatory) - `domain_name`: Your Daily domain (optional) - `room_name`: The name of the room which is getting recorded (optional) - `mtg_session_id`: The ID of the meeting session which is getting recorded (optional) - `instance_id`: The instance ID of the recording (optional) - `recording_id`: The recording ID of the recording (optional) The restrictions for defining a recording template are as follows: - The `epoch_time` tag is mandatory to ensure the recording file name is unique under all conditions - The maximum size of the template is 1024 characters - Each replacement parameter should be placed within a curly bracket (e.g., `{domain_name}`) - Only alphanumeric characters `(0-9, A-Z, a-z)` and `.`, `/`, `-`, `_` are valid within the template - `.mp4` is the only valid extension Examples - Example domain: &quot;myDomain&quot; - Example room: &quot;myRoom&quot; Example 1: - Template: `myprefix-{domain_name}-{epoch_time}.mp4` - Resulting file name: `myprefix-myDomain-1675842936274.mp4` Example 2: - Template: `{room_name}/{instance_id}/{epoch_time}` - Resulting room name: `myRoom/d529cd2f-fbcc-4fb7-b2c0-c4995b1162b6/1675842936274` [optional][default to '{domain_name}/{room_name}/{epoch_time}.']
streaming_endpoints Array<RoomPropertiesStreamingEndpointsInner> An array of stream endpoint configuration objects, which allows configurations to be pre-defined without having to pass them into `startLiveStreaming()` at runtime. For example, an RTMP endpoint can be set up for YouTube as a `streaming_endpoints` configuration along with another configuration for HLS storage. HLS output can only be stored on a customer's S3, not in Daily's storage infrastructure. The stream configuration defines which S3 bucket to store the HLS output. (See the S3 bucket guide for more information.) Example: ```json { &quot;properties&quot;: { // ... add additional room properties here &quot;streaming_endpoints&quot;: [ { &quot;name&quot;: &quot;rtmp_youtube&quot;, &quot;type&quot;: &quot;rtmp&quot;, &quot;rtmp_config&quot;: { &quot;url&quot;: &quot;rtmps://exampleYouTubeServer.com:443/stream&quot; } }, { &quot;name&quot;: &quot;rtmp_ivs&quot;, &quot;type&quot;: &quot;rtmp&quot;, &quot;rtmp_config&quot;: { &quot;url&quot;: &quot;rtmps://811111111111.global-contribute.live-video.net:443/app/&quot; } }, { &quot;name&quot;: &quot;hls_akamai&quot;, &quot;type&quot;: &quot;hls&quot;, &quot;hls_config&quot;: { &quot;save_hls_recording&quot;: true/false, &quot;storage&quot;: { &quot;bucket_name&quot;: &quot;daily-hls-streams&quot;, &quot;bucket_region&quot;: &quot;us-west-2&quot;, &quot;assume_role_arn&quot;: &quot;arn:aws:iam::999999999999:role/DailyS3AccessRole&quot;, &quot;path_template&quot;: &quot;testHarness/{live_streaming_id}/{instance_id}&quot; }, &quot;variant&quot; : [ { &quot;width&quot;: 1920, &quot;height&quot;: 1080, &quot;fps&quot;: 30, &quot;bitrate&quot;: 3500, &quot;iframe_only&quot;: false }, { &quot;width&quot;: 1280, &quot;height&quot;: 720, &quot;fps&quot;: 30, &quot;bitrate&quot;: 2500, &quot;iframe_only&quot;: false }, { &quot;width&quot;: 640, &quot;height&quot;: 360, &quot;fps&quot;: 30, &quot;bitrate&quot;: 780, &quot;iframe_only&quot;: true } ] } } ] } } ``` To reset the `streaming_endpoints` property, pass `null` instead of an array. When calling `startLiveStreaming()`, the pre-defined `streaming_endpoints` `name` can be used: ```javascript await callObject.startLiveStreaming({ endpoints: [{&quot;endpoint&quot;:&quot;rtmp_youtube&quot;},{&quot;endpoint&quot;:&quot;rtmp_fb&quot;}], width: 1280, height: 720, }); ``` Properties: [optional]
permissions Permissions [optional]

Example

require 'daily-ruby'

instance = Daily::RoomProperties.new(
  nbf: null,
  exp: null,
  max_participants: null,
  enable_people_ui: null,
  enable_pip_ui: null,
  enable_emoji_reactions: null,
  enable_hand_raising: null,
  enable_prejoin_ui: null,
  enable_live_captions_ui: null,
  enable_network_ui: null,
  enable_noise_cancellation_ui: null,
  enable_breakout_rooms: null,
  enable_knocking: null,
  enable_screenshare: null,
  enable_video_processing_ui: null,
  enable_chat: null,
  enable_shared_chat_history: null,
  start_video_off: null,
  start_audio_off: null,
  owner_only_broadcast: null,
  enable_recording: null,
  eject_at_room_exp: null,
  eject_after_elapsed: null,
  enable_advanced_chat: null,
  enable_hidden_participants: null,
  enable_mesh_sfu: null,
  sfu_switchover: null,
  enable_adaptive_simulcast: null,
  enable_multiparty_adaptive_simulcast: null,
  enforce_unique_user_ids: null,
  experimental_optimize_large_calls: null,
  lang: null,
  meeting_join_hook: null,
  geo: null,
  rtmp_geo: null,
  disable_rtmp_geo_fallback: null,
  recordings_bucket: null,
  enable_terse_logging: null,
  auto_transcription_settings: {&quot;language&quot;:&quot;de&quot;},
  enable_transcription_storage: null,
  transcription_bucket: null,
  recordings_template: null,
  streaming_endpoints: null,
  permissions: null
)