|
|
@ -27,7 +27,7 @@ function pageReady() {
|
|
|
|
const bgOpacitySelector = document.querySelector('.vjs-bg-opacity > select');
|
|
|
|
const bgOpacitySelector = document.querySelector('.vjs-bg-opacity > select');
|
|
|
|
bgOpacitySelector.value = "0.5"
|
|
|
|
bgOpacitySelector.value = "0.5"
|
|
|
|
|
|
|
|
|
|
|
|
fetch(`//localhost:8011/professor/line/${line_id}`)
|
|
|
|
fetch(`/professor/desertbus/line/${line_id}`)
|
|
|
|
.then(response => response.json())
|
|
|
|
.then(response => response.json())
|
|
|
|
.then(fillLineInfo)
|
|
|
|
.then(fillLineInfo)
|
|
|
|
.then(initializePlayer);
|
|
|
|
.then(initializePlayer);
|
|
|
@ -84,11 +84,11 @@ function fillLineInfo(line_json) {
|
|
|
|
|
|
|
|
|
|
|
|
function initializePlayer() {
|
|
|
|
function initializePlayer() {
|
|
|
|
videojs.getPlayer("player").src([
|
|
|
|
videojs.getPlayer("player").src([
|
|
|
|
{src: `//localhost:8011/professor/line/${line_id}/playlist.m3u8`}
|
|
|
|
{src: `/professor/desertbus/line/${line_id}/playlist.m3u8`}
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
videojs.getPlayer("player").addRemoteTextTrack({
|
|
|
|
videojs.getPlayer("player").addRemoteTextTrack({
|
|
|
|
kind: "captions",
|
|
|
|
kind: "captions",
|
|
|
|
src: `//localhost:8010/buscribe/vtt?start_time=${line.start_time}&end_time=${line.end_time}`,
|
|
|
|
src: `/buscribe/desertbus/vtt?start_time=${line.start_time}&end_time=${line.end_time}`,
|
|
|
|
srclang: "en",
|
|
|
|
srclang: "en",
|
|
|
|
label: "English",
|
|
|
|
label: "English",
|
|
|
|
default: true
|
|
|
|
default: true
|
|
|
@ -112,7 +112,7 @@ async function submit() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return await fetch("//localhost:8011/professor/speaker",
|
|
|
|
return await fetch("/professor/desertbus/speaker",
|
|
|
|
{
|
|
|
|
{
|
|
|
|
method: "PUT",
|
|
|
|
method: "PUT",
|
|
|
|
headers: {
|
|
|
|
headers: {
|
|
|
@ -126,7 +126,7 @@ async function submit() {
|
|
|
|
.pop(), 10));
|
|
|
|
.pop(), 10));
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
fetch(`//localhost:8011/professor/line/${line_id}`,
|
|
|
|
fetch(`/professor/desertbus/line/${line_id}`,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
method: "POST",
|
|
|
|
method: "POST",
|
|
|
|
headers: {
|
|
|
|
headers: {
|
|
|
@ -144,7 +144,7 @@ async function submit() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
$(function () {
|
|
|
|
fetch("//localhost:8011/professor/speaker")
|
|
|
|
fetch("/professor/desertbus/speaker")
|
|
|
|
.then(response => response.json())
|
|
|
|
.then(response => response.json())
|
|
|
|
.then(function (speakers_json) {
|
|
|
|
.then(function (speakers_json) {
|
|
|
|
speakers = speakers_json;
|
|
|
|
speakers = speakers_json;
|
|
|
|