Skip to content

Commit

Permalink
Merge pull request bigbluebutton#99 from mconf/1962-workers-upload-ty…
Browse files Browse the repository at this point in the history
…pe-video

[PRT-1962] - Add support for type video on eduplay and filesender (workers)
  • Loading branch information
Lucas-Schell authored Mar 19, 2024
2 parents 7cd5369 + 1c37411 commit 447be01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/jobs/upload_recording_to_eduplay_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class UploadRecordingToEduplayJob < ApplicationJob
def perform(room, rec_id, user)
@recording = get_recordings(room, recordID: rec_id).first.first
@eduplay_token = EduplayToken.find_by(user_uid: user[:uid])
playback = @recording[:playbacks].find{ |f| f[:type] == 'presentation_video' }
playback = @recording[:playbacks].find { |f| f[:type] == 'video' } || @recording[:playbacks].find { |f| f[:type] == 'presentation_video' }

if playback.nil?
return Resque.logger.error "Recording #{rec_id} has no video playback format"
Expand Down
2 changes: 1 addition & 1 deletion app/jobs/upload_recording_to_filesender_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def perform(room, rec_id, user, data)
@recording = get_recordings(room, recordID: rec_id).first.first
# @user = User.find(user_id)
@filesender_token = FilesenderToken.find_by(user_uid: user[:uid])
@playback = @recording[:playbacks].find{ |f| f[:type] == 'presentation_video' }
@playback = @recording[:playbacks].find { |f| f[:type] == 'video' } || @recording[:playbacks].find { |f| f[:type] == 'presentation_video' }

if @playback.nil?
return Resque.logger.error "Recording #{rec_id} has no video playback format"
Expand Down

0 comments on commit 447be01

Please sign in to comment.