Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NEEDSCUTTING state for video editor #370

Merged
merged 1 commit into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classes/local/apibridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ public function can_edit_event_in_editor($video, $courseid) {
// We check if the basic editor integration configs are set, the video processing state is succeeded
// (to avoid process failure) and there is internal publication status (to avoid error 400 in editor).
if (get_config('block_opencast', 'enable_opencast_editor_link_' . $this->ocinstanceid) &&
isset($video->processing_state) && $video->processing_state == "SUCCEEDED" &&
isset($video->processing_state) && in_array($video->processing_state, ["SUCCEEDED", "NEEDSCUTTING"]) &&
isset($video->publication_status) && is_array($video->publication_status) &&
in_array('internal', $video->publication_status)) {
$context = context_course::instance($courseid);
Expand Down
Loading