@@ -85,7 +85,6 @@ function init () {
|
|||||||
})
|
})
|
||||||
|
|
||||||
document.addEventListener('keydown', function (e) {
|
document.addEventListener('keydown', function (e) {
|
||||||
console.log('keydown ' + e.which)
|
|
||||||
if (e.which === 27) { /* ESC means either exit fullscreen or go back */
|
if (e.which === 27) { /* ESC means either exit fullscreen or go back */
|
||||||
if (state.view.isFullScreen) {
|
if (state.view.isFullScreen) {
|
||||||
dispatch('toggleFullScreen')
|
dispatch('toggleFullScreen')
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function Player (state, dispatch) {
|
|||||||
<div class="letterbox">
|
<div class="letterbox">
|
||||||
<video
|
<video
|
||||||
src="${state.server.localURL}"
|
src="${state.server.localURL}"
|
||||||
onloadedmetadata="${onLoadedMetadata}"
|
onloadedmetadata=${onLoadedMetadata}
|
||||||
autoplay="true">
|
autoplay="true">
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
@@ -79,7 +79,6 @@ function renderPlayerControls (state, dispatch) {
|
|||||||
if (state.view.devices.chromecast) {
|
if (state.view.devices.chromecast) {
|
||||||
elements.push(hx`
|
elements.push(hx`
|
||||||
<i.icon.chromecast
|
<i.icon.chromecast
|
||||||
class="${!torrent.ready ? 'disabled' : ''}"
|
|
||||||
onclick=${() => dispatch('openChromecast', torrent)}>
|
onclick=${() => dispatch('openChromecast', torrent)}>
|
||||||
cast
|
cast
|
||||||
</i>
|
</i>
|
||||||
@@ -88,7 +87,6 @@ function renderPlayerControls (state, dispatch) {
|
|||||||
if (state.view.devices.airplay) {
|
if (state.view.devices.airplay) {
|
||||||
elements.push(hx`
|
elements.push(hx`
|
||||||
<i.icon.airplay
|
<i.icon.airplay
|
||||||
class="${!torrent.ready ? 'disabled' : ''}"
|
|
||||||
onclick=${() => dispatch('openAirplay', torrent)}>
|
onclick=${() => dispatch('openAirplay', torrent)}>
|
||||||
airplay
|
airplay
|
||||||
</i>
|
</i>
|
||||||
|
|||||||
Reference in New Issue
Block a user