assets/scripts.js: Fix playing hash + pre-specified video src

This commit is contained in:
Vladimir Panteleev 2019-07-28 03:07:18 +00:00
parent 776c2d1aaa
commit 925d950efb

View file

@ -367,7 +367,10 @@ window.onload = function() {
var file_selector = document.getElementById("file-selector");
function startPlayback() {
file_selector.style.display = 'none';
playSegment(null);
if (window.location.hash)
playHash(window.location.hash);
else
playSegment(null);
video_selector.play();
}
if (video_source_selector.getAttribute("src") == '') {
@ -422,9 +425,6 @@ window.onload = function() {
window.onhashchange = function() {
playHash(window.location.hash);
};
if (window.location.hash) {
playHash(window.location.hash);
}
};
function seek(ms) {