airplay/chromecast: remove unneeded startServer() calls
This commit is contained in:
@@ -530,7 +530,6 @@ function deleteTorrent (torrentSummary) {
|
|||||||
|
|
||||||
function openChromecast (infoHash) {
|
function openChromecast (infoHash) {
|
||||||
var torrentSummary = getTorrentSummary(infoHash)
|
var torrentSummary = getTorrentSummary(infoHash)
|
||||||
startServer(infoHash, function () {
|
|
||||||
state.devices.chromecast.play(state.server.networkURL, {
|
state.devices.chromecast.play(state.server.networkURL, {
|
||||||
title: config.APP_NAME + ' — ' + torrentSummary.name
|
title: config.APP_NAME + ' — ' + torrentSummary.name
|
||||||
})
|
})
|
||||||
@@ -539,16 +538,13 @@ function openChromecast (infoHash) {
|
|||||||
onError(err)
|
onError(err)
|
||||||
})
|
})
|
||||||
update()
|
update()
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function openAirplay (infoHash) {
|
function openAirplay (infoHash) {
|
||||||
startServer(infoHash, function () {
|
|
||||||
state.devices.airplay.play(state.server.networkURL, 0, function () {
|
state.devices.airplay.play(state.server.networkURL, 0, function () {
|
||||||
// TODO: handle airplay errors
|
// TODO: handle airplay errors
|
||||||
})
|
})
|
||||||
update()
|
update()
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set window dimensions to match video dimensions or fill the screen
|
// Set window dimensions to match video dimensions or fill the screen
|
||||||
|
|||||||
Reference in New Issue
Block a user