Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/vonage/keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def camelcase(hash)
'phone_number',
'hashed_phone_number',
'max_age',
'max_bitrate'
'max_bitrate',
'quantization_parameter'
]
hash.transform_keys do |k|
if exceptions.include?(k.to_s)
Expand Down
4 changes: 3 additions & 1 deletion lib/vonage/video/archives.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def info(archive_id:)
#
# @param [optional, String] :multi_archive_tag
#
# @param [optional, String] :max_bitrate
# @param [optional, Number] :max_bitrate
#
# @param [optional, Number] :quantization_parameter
#
# @param [optional, Hash] :layout
#
Expand Down
1 change: 1 addition & 0 deletions lib/vonage/video/web_socket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Video::WebSocket < Namespace
# @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.
# @option websocket [optional, Integer] :audio_rate A number representing the audio sampling rate in Hz
# - Must be one of: 8000, 16000
# @option websocket [optional, Boolean] :bidirectional Whether to send audio data from the WebSocket connection to a stream published in the session.
#
# @return [Response]
#
Expand Down
6 changes: 4 additions & 2 deletions test/vonage/video/archives_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def test_start_method_with_optional_params
sessionId: video_session_id,
resolution: '640x480',
streamMode: 'auto',
maxBitrate: 200000
maxBitrate: 200000,
quantizationParameter: 40
}

stub_request(:post, uri).with(body: request_params).to_return(response)
Expand All @@ -53,7 +54,8 @@ def test_start_method_with_optional_params
session_id: video_session_id,
resolution: '640x480',
stream_mode: 'auto',
max_bitrate: 200000
max_bitrate: 200000,
quantization_parameter: 40
)
end

Expand Down
6 changes: 4 additions & 2 deletions test/vonage/video/web_socket_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def test_connect_method_with_optional_params
uri: 'wss://example.com/ws-endpoint',
streams: ['stream1', 'stream2'],
headers: { property1: 'foo', property2: 'bar' },
audioRate: 16000
audioRate: 16000,
bidirectional: true
}
}

Expand All @@ -53,7 +54,8 @@ def test_connect_method_with_optional_params
uri: 'wss://example.com/ws-endpoint',
streams: ['stream1', 'stream2'],
headers: { property1: 'foo', property2: 'bar' },
audio_rate: 16000
audio_rate: 16000,
bidirectional: true
}
)

Expand Down