Skip to content

Commit

Permalink
adding an error notification
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Feb 22, 2024
1 parent 15ad73a commit a52d142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions classes/local/output_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public static function output_episode($ocinstanceid, $episodeid, $modinstanceid,
$resolution = $res['w'] . '/' . $res['h'];
echo \html_writer::start_div('player-wrapper', ['style' => '--aspect-ratio:' . $resolution]);
} else {
\core\notification::error(get_string('erroremptystreamsources', 'mod_opencast'));
echo \html_writer::start_div('player-wrapper');
}

Expand Down
1 change: 1 addition & 0 deletions lang/en/opencast.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

$string['episode'] = 'Opencast episode';
$string['errorfetchingvideo'] = 'There was a problem fetching the video.';
$string['erroremptystreamsources'] = 'There is no video source available. Please contact your system administrator.';

$string['gridview'] = 'View as grid';

Expand Down

0 comments on commit a52d142

Please sign in to comment.