airplay/chromecast: remove unneeded startServer() calls

This commit is contained in:
Feross Aboukhadijeh
2016-03-09 02:16:20 -08:00
parent 5cc844ecbd
commit f99bbab91c

View File

@@ -530,7 +530,6 @@ function deleteTorrent (torrentSummary) {
function openChromecast (infoHash) {
var torrentSummary = getTorrentSummary(infoHash)
startServer(infoHash, function () {
state.devices.chromecast.play(state.server.networkURL, {
title: config.APP_NAME + ' — ' + torrentSummary.name
})
@@ -539,16 +538,13 @@ function openChromecast (infoHash) {
onError(err)
})
update()
})
}
function openAirplay (infoHash) {
startServer(infoHash, function () {
state.devices.airplay.play(state.server.networkURL, 0, function () {
// TODO: handle airplay errors
})
update()
})
}
// Set window dimensions to match video dimensions or fill the screen