lib/twilio-ruby/rest/video/v1/room.rb in twilio-ruby-5.45.1 vs lib/twilio-ruby/rest/video/v1/room.rb in twilio-ruby-5.46.0

- old
+ new

@@ -46,12 +46,12 @@ # Group rooms can have up to 4 Participants. Group rooms can have up to 50 # Participants. # @param [Boolean] record_participants_on_connect Whether to start recording when # Participants connect. ***This feature is not available in `peer-to-peer` # rooms.*** - # @param [room.VideoCodec] video_codecs An array of the video codecs that are - # supported when publishing a track in the room. Can be: `VP8` and `H264`. + # @param [Array[room.VideoCodec]] video_codecs An array of the video codecs that + # are supported when publishing a track in the room. Can be: `VP8` and `H264`. # ***This feature is not available in `peer-to-peer` rooms*** # @param [String] media_region The region for the media server in Group Rooms. # Can be: one of the {available Media # Regions}[https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers]. # ***This feature is not available in `peer-to-peer` rooms.*** @@ -355,10 +355,11 @@ 'status_callback_method' => payload['status_callback_method'], 'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']), 'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i, 'type' => payload['type'], 'max_participants' => payload['max_participants'].to_i, + 'max_concurrent_published_tracks' => payload['max_concurrent_published_tracks'] == nil ? payload['max_concurrent_published_tracks'] : payload['max_concurrent_published_tracks'].to_i, 'record_participants_on_connect' => payload['record_participants_on_connect'], 'video_codecs' => payload['video_codecs'], 'media_region' => payload['media_region'], 'url' => payload['url'], 'links' => payload['links'], @@ -457,16 +458,22 @@ def max_participants @properties['max_participants'] end ## + # @return [String] The maximum number of published tracks allowed in the room at the same time + def max_concurrent_published_tracks + @properties['max_concurrent_published_tracks'] + end + + ## # @return [Boolean] Whether to start recording when Participants connect def record_participants_on_connect @properties['record_participants_on_connect'] end ## - # @return [room.VideoCodec] An array of the video codecs that are supported when publishing a track in the room + # @return [Array[room.VideoCodec]] An array of the video codecs that are supported when publishing a track in the room def video_codecs @properties['video_codecs'] end ## \ No newline at end of file