Browse Source

chore(demo): clear type on manual source change (#1030)

If a user manually changes the url, the type may not be correct anymore.
We should clear it. Given that we auto-detect .m3u8 and .mpd types, it
shouldn't be a big deal and would cause less problems than the incorrect
type being present for the given source.
pull/1031/head
Gary Katsevman 5 years ago
committed by GitHub
parent
commit
d39276d4cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      scripts/index-demo-page.js

5
scripts/index-demo-page.js

@ -413,6 +413,11 @@
urlButton.click();
}
});
stateEls.url.addEventListener('input', function(event) {
if (stateEls.type.value.length) {
stateEls.type.value = '';
}
});
stateEls.type.addEventListener('keyup', function(event) {
if (event.key === 'Enter') {
urlButton.click();

Loading…
Cancel
Save