Skip to content

Commit

Permalink
MDL-59255 core: Make core_media_manager support RTMP.
Browse files Browse the repository at this point in the history
  • Loading branch information
kabalin committed Jul 18, 2017
1 parent 646e8bf commit b03ffb0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions media/classes/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ public function get_embeddable_markers() {
* @return array Array of 1 or more moodle_url objects
*/
public function split_alternatives($combinedurl, &$width, &$height) {
global $CFG;
$urls = explode('#', $combinedurl);
$width = 0;
$height = 0;
Expand Down Expand Up @@ -426,8 +427,9 @@ public function split_alternatives($combinedurl, &$width, &$height) {
}

// Clean up url.
$url = clean_param($url, PARAM_URL);
if (empty($url)) {
$url = fix_utf8($url);
include_once($CFG->dirroot . '/lib/validateurlsyntax.php');
if (!validateUrlSyntax($url, 's?H?S?F?R?E?u-P-a?I?p?f?q?r?')) {
continue;
}

Expand Down

0 comments on commit b03ffb0

Please sign in to comment.