fix DLNA icon, calls, remove unneeded depencendies in dlnacasts
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
"application-config-path": "^0.1.0",
|
"application-config-path": "^0.1.0",
|
||||||
"chromecasts": "^1.8.0",
|
"chromecasts": "^1.8.0",
|
||||||
"create-torrent": "^3.22.1",
|
"create-torrent": "^3.22.1",
|
||||||
"dlnacasts": "^0.0.1",
|
"dlnacasts": "^0.0.2",
|
||||||
"drag-drop": "^2.11.0",
|
"drag-drop": "^2.11.0",
|
||||||
"electron-localshortcut": "^0.6.0",
|
"electron-localshortcut": "^0.6.0",
|
||||||
"electron-prebuilt": "0.37.3",
|
"electron-prebuilt": "0.37.3",
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ function dispatch (action, ...args) {
|
|||||||
if (action === 'openTorrentContextMenu') {
|
if (action === 'openTorrentContextMenu') {
|
||||||
openTorrentContextMenu(args[0] /* infoHash */)
|
openTorrentContextMenu(args[0] /* infoHash */)
|
||||||
}
|
}
|
||||||
if (action === 'open') {
|
if (action === 'openDevice') {
|
||||||
lazyLoadCast().open(args[0] /* deviceType */)
|
lazyLoadCast().open(args[0] /* deviceType */)
|
||||||
}
|
}
|
||||||
if (action === 'stopCasting') {
|
if (action === 'stopCasting') {
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ function renderCastScreen (state) {
|
|||||||
backgroundImage: cssBackgroundImagePoster(state)
|
backgroundImage: cssBackgroundImagePoster(state)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show whether we're connected to Chromecast / Airplay /DLNA
|
// Show whether we're connected to Chromecast / Airplay / DLNA
|
||||||
var castStatus = isStarting ? 'Connecting...' : 'Connected'
|
var castStatus = isStarting ? 'Connecting...' : 'Connected'
|
||||||
return hx`
|
return hx`
|
||||||
<div class='letterbox' style=${style}>
|
<div class='letterbox' style=${style}>
|
||||||
@@ -275,9 +275,9 @@ function renderPlayerControls (state) {
|
|||||||
chromecastClass = ''
|
chromecastClass = ''
|
||||||
airplayClass = ''
|
airplayClass = ''
|
||||||
dlnaClass = ''
|
dlnaClass = ''
|
||||||
chromecastHandler = dispatcher('open', 'chromecast')
|
chromecastHandler = dispatcher('openDevice', 'chromecast')
|
||||||
airplayHandler = dispatcher('open', 'airplay')
|
airplayHandler = dispatcher('openDevice', 'airplay')
|
||||||
dlnaHandler = dispatcher('open', 'dlna')
|
dlnaHandler = dispatcher('openDevice', 'dlna')
|
||||||
}
|
}
|
||||||
if (state.devices.chromecast || isOnChromecast) {
|
if (state.devices.chromecast || isOnChromecast) {
|
||||||
elements.push(hx`
|
elements.push(hx`
|
||||||
@@ -302,7 +302,7 @@ function renderPlayerControls (state) {
|
|||||||
<i.icon.device
|
<i.icon.device
|
||||||
class=${dlnaClass}
|
class=${dlnaClass}
|
||||||
onclick=${dlnaHandler}>
|
onclick=${dlnaHandler}>
|
||||||
cast
|
tv
|
||||||
</i>
|
</i>
|
||||||
`)
|
`)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user