Skip to content

Commit cb6ad17

Browse files
authored
feat: Video Updates Q3 2025 (#336)
1 parent d968518 commit cb6ad17

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

lib/vonage/keys.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def camelcase(hash)
4040
'phone_number',
4141
'hashed_phone_number',
4242
'max_age',
43-
'max_bitrate'
43+
'max_bitrate',
44+
'quantization_parameter'
4445
]
4546
hash.transform_keys do |k|
4647
if exceptions.include?(k.to_s)

lib/vonage/video/archives.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ def info(archive_id:)
5959
#
6060
# @param [optional, String] :multi_archive_tag
6161
#
62-
# @param [optional, String] :max_bitrate
62+
# @param [optional, Number] :max_bitrate
63+
#
64+
# @param [optional, Number] :quantization_parameter
6365
#
6466
# @param [optional, Hash] :layout
6567
#

lib/vonage/video/web_socket.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class Video::WebSocket < Namespace
3838
# @option websocket [optional, Hash] :headers An object of key-value pairs of headers to be sent to your WebSocket server with each message, with a maximum length of 512 bytes.
3939
# @option websocket [optional, Integer] :audio_rate A number representing the audio sampling rate in Hz
4040
# - Must be one of: 8000, 16000
41+
# @option websocket [optional, Boolean] :bidirectional Whether to send audio data from the WebSocket connection to a stream published in the session.
4142
#
4243
# @return [Response]
4344
#

test/vonage/video/archives_test.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def test_start_method_with_optional_params
4444
sessionId: video_session_id,
4545
resolution: '640x480',
4646
streamMode: 'auto',
47-
maxBitrate: 200000
47+
maxBitrate: 200000,
48+
quantizationParameter: 40
4849
}
4950

5051
stub_request(:post, uri).with(body: request_params).to_return(response)
@@ -53,7 +54,8 @@ def test_start_method_with_optional_params
5354
session_id: video_session_id,
5455
resolution: '640x480',
5556
stream_mode: 'auto',
56-
max_bitrate: 200000
57+
max_bitrate: 200000,
58+
quantization_parameter: 40
5759
)
5860
end
5961

test/vonage/video/web_socket_test.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def test_connect_method_with_optional_params
4040
uri: 'wss://example.com/ws-endpoint',
4141
streams: ['stream1', 'stream2'],
4242
headers: { property1: 'foo', property2: 'bar' },
43-
audioRate: 16000
43+
audioRate: 16000,
44+
bidirectional: true
4445
}
4546
}
4647

@@ -53,7 +54,8 @@ def test_connect_method_with_optional_params
5354
uri: 'wss://example.com/ws-endpoint',
5455
streams: ['stream1', 'stream2'],
5556
headers: { property1: 'foo', property2: 'bar' },
56-
audio_rate: 16000
57+
audio_rate: 16000,
58+
bidirectional: true
5759
}
5860
)
5961

0 commit comments

Comments
 (0)