Skip to content

Commit

Permalink
chore: fix demo page on firefox, always use vhs on safari (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored May 21, 2020
1 parent c12e0bc commit d567b7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/index-demo-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
liveui: stateEls.liveui.checked,
html5: {
hls: {
overrideNative: !window.videojs.browser.IS_SAFARI
overrideNative: true
}
}
});
Expand Down Expand Up @@ -322,6 +322,10 @@

sources.addEventListener('change', function(event) {
var selectedOption = sources.options[sources.selectedIndex];

if (!selectedOption) {
return;
}
var src = selectedOption.value;

stateEls.url.value = src;
Expand Down

0 comments on commit d567b7d

Please sign in to comment.