diff --git a/lib/opentok/archives.rb b/lib/opentok/archives.rb index d3cfe6a..30269a6 100644 --- a/lib/opentok/archives.rb +++ b/lib/opentok/archives.rb @@ -97,7 +97,16 @@ def create(session_id, options = {}) "Resolution cannot be supplied for individual output mode" if options.key?(:resolution) and options[:output_mode] == :individual # normalize opts so all keys are symbols and only include valid_opts - valid_opts = [ :name, :has_audio, :has_video, :output_mode, :resolution, :layout ] + valid_opts = [ + :name, + :has_audio, + :has_video, + :output_mode, + :resolution, + :layout, + :multiArchiveTag, + :streamMode + ] opts = options.inject({}) do |m,(k,v)| if valid_opts.include? k.to_sym m[k.to_sym] = v diff --git a/spec/cassettes/OpenTok_Archives/should_create_an_archive_with_matching_multi_archive_tag_when_multiArchiveTag_is_specified.yml b/spec/cassettes/OpenTok_Archives/should_create_an_archive_with_matching_multi_archive_tag_when_multiArchiveTag_is_specified.yml index a2dbec7..ac8f1a9 100644 --- a/spec/cassettes/OpenTok_Archives/should_create_an_archive_with_matching_multi_archive_tag_when_multiArchiveTag_is_specified.yml +++ b/spec/cassettes/OpenTok_Archives/should_create_an_archive_with_matching_multi_archive_tag_when_multiArchiveTag_is_specified.yml @@ -5,7 +5,7 @@ http_interactions: uri: https://api.opentok.com/v2/project/123456/archive body: encoding: UTF-8 - string: '{"sessionId":"SESSIONID"}' + string: '{"sessionId":"SESSIONID","multiArchiveTag":"archive-1"}' headers: User-Agent: - OpenTok-Ruby-SDK/<%= version %> diff --git a/spec/cassettes/OpenTok_Archives/should_create_an_archives_with_a_specified_multiArchiveTag.yml b/spec/cassettes/OpenTok_Archives/should_create_an_archives_with_a_specified_multiArchiveTag.yml index adf5816..5fc9494 100644 --- a/spec/cassettes/OpenTok_Archives/should_create_an_archives_with_a_specified_multiArchiveTag.yml +++ b/spec/cassettes/OpenTok_Archives/should_create_an_archives_with_a_specified_multiArchiveTag.yml @@ -5,7 +5,7 @@ http_interactions: uri: https://api.opentok.com/v2/project/123456/archive body: encoding: UTF-8 - string: '{"sessionId":"SESSIONID"}' + string: '{"sessionId":"SESSIONID","multiArchiveTag":"archive-1"}' headers: User-Agent: - OpenTok-Ruby-SDK/<%= version %>