Skip to content

Commit

Permalink
Accept all valid options for archive creation. (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
DropsOfSerenity authored Jan 3, 2024
1 parent 23c6380 commit c5e3588
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 c5e3588

Please sign in to comment.