chromecast: show WebTorrent before torrent name
This commit is contained in:
@@ -225,7 +225,7 @@ function closePlayer () {
|
|||||||
function openChromecast (torrent) {
|
function openChromecast (torrent) {
|
||||||
startServer(torrent, function () {
|
startServer(torrent, function () {
|
||||||
console.log(state.server.networkURL)
|
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) {
|
state.chromecast.on('error', function (err) {
|
||||||
err.message = 'Chromecast: ' + err.message
|
err.message = 'Chromecast: ' + err.message
|
||||||
onError(err)
|
onError(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user