chromecast: show WebTorrent before torrent name

This commit is contained in:
Feross Aboukhadijeh
2016-03-02 19:53:12 -08:00
parent ec5eb8aeae
commit b861f39b95

View File

@@ -225,7 +225,7 @@ function closePlayer () {
function openChromecast (torrent) {
startServer(torrent, function () {
console.log(state.server.networkURL)
state.chromecast.play(state.server.networkURL, { title: torrent.name })
state.chromecast.play(state.server.networkURL, { title: 'WebTorrent — ' + torrent.name })
state.chromecast.on('error', function (err) {
err.message = 'Chromecast: ' + err.message
onError(err)