diff --git a/classes/html_writer.php b/classes/html_writer.php index 24e6c98..bc29a1b 100644 --- a/classes/html_writer.php +++ b/classes/html_writer.php @@ -47,7 +47,9 @@ public static function video($url, $params, $enable_autoload, $enable_controls) $js = <<requires->css(new \moodle_url("css/video-js.min.css")); $PAGE->requires->js(new \moodle_url("js/video.min.js"), true); //$PAGE->requires->js(new \moodle_url("js/videojs-contrib-media-sources.min.js"), true); +//$PAGE->requires->js(new \moodle_url("js/videojs.flashls.js"), true); $PAGE->requires->js(new \moodle_url("js/videojs-contrib-hls.min.js"), true); +//$PAGE->requires->js(new \moodle_url("js/video_main.js")); echo $OUTPUT->header(); @@ -87,7 +89,8 @@ "id" => "simplevideo_player", "class" => "video-js vjs-default-skin vjs-big-play-centered", "data-setup" => '{ - "playbackRates": [0.5, 1, 1.5, 2] + "playbackRates": [0.5, 1, 1.5, 2], + "techOrder": ["flash", "html5"] }' ]; echo html_writer::start_div("span7 well");