Skip to content

Commit

Permalink
Accept all valid options for archive creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
DropsOfSerenity committed Dec 15, 2023
1 parent 23c6380 commit ecb4bba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion lib/opentok/archives.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ecb4bba

Please sign in to comment.