Add better capacity for live lectures

This commit is contained in:
2023-10-08 16:24:31 +01:00
parent 9da49ceed8
commit 18f2399c0e
3 changed files with 15 additions and 1 deletions
+4
View File
@@ -19,6 +19,10 @@ class LectureController < ApplicationController
project_id: lecture.course.toggl_project,
)
if lecture.is_live?
redirect_to lecture.live_video_url, allow_other_host: true
end
if lecture.recording.present?
redirect_to lecture.recording.recording_url, allow_other_host: true
end