Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromecast functionality lost on v4 update #1184

Closed
nachocifu opened this issue Mar 20, 2020 · 14 comments
Closed

Chromecast functionality lost on v4 update #1184

nachocifu opened this issue Mar 20, 2020 · 14 comments

Comments

@nachocifu
Copy link

Operating System Version: OS X

Popcorn Time Version: V4

Download date: Long time ago

Expected Behaviour

When playing something, should have option to cast content to chrome cast.

Actual Behaviour

Chromecast devices are not listed anymore.

@team-pct
Copy link
Contributor

Get us more logs as we cannot reproduce
Chromecast is working fine

@aryaroudi
Copy link

The AirPlay also has gone and in addition, the cover of the movie is not loading in macosx

@nachocifu
Copy link
Author

also happening the covers error mentioned by @aryaroudi (I thought it was only a local caching problem or something)

@team-pct where/how to print logs?

@nachocifu
Copy link
Author

the covers error has an issue already #1189

@Persei08
Copy link
Collaborator

chromecast well detected too.

@nachocifu see here: http://docs.nwjs.io/en/latest/For%20Users/Debugging%20with%20DevTools/
Open the developer tools and switch to "console" tab

@nachocifu
Copy link
Author

@Persei08 on Mac?
Im attaching screenshot. DevTools with no activity. PopCornTime not showing chrome cast option and VLC showing the chrome cast option (and current alternative to cast video)
Screen Shot 2020-03-28 at 02 56 52

@Persei08
Copy link
Collaborator

I'm on linux but it should also work on mac too.

There is something wrong here with the developer tools window. It says (in title bar) "chrome-search://local-ntp/local-ntp.html" which is a new tab in chrome. Are you sure you opened the developer tools from PT window ?

@gabrielgradinaru
Copy link

I'm also having issues with chromecast. In my case, the chromecast device is detected but I get an error when streaming to it.

I've uploaded the logs here: https://gist.github.com/gabrielgradinaru/055d3e11607d6586ade401c0c6057e91

Let me know if I can provide any other info.

@team-pct
Copy link
Contributor

team-pct commented Apr 2, 2020

Try to disable ipv6

@gabrielgradinaru
Copy link

gabrielgradinaru commented Apr 2, 2020

Ok, I've disabled IPv6 and my other network adapters and the error is gone.
However, it seems like the playback is stopped immediately:

....
app.js 17 [INFO] 27 subtitles found
app.js:17 [INFO] Loading torrent: playingExternally
app.js:17 [INFO] Device IP: d14c04a5-2f93-df95-65bd-c21ac6000132.local
app.js:17 [INFO] Available IPs: ["192.168.1.102"]
app.js:17 [INFO] 192.168.1.102 picked for external playback
app.js:17 [INFO] Chromecast: play http://192.168.1.102:57654/0 on 'Living Room TV'
app.js:17 [INFO] Chromecast: connecting to d14c04a5-2f93-df95-65bd-c21ac6000132.local
app.js:17 [INFO] Playing http://192.168.1.102:57654/0 on Living Room TV
app.js:17 [INFO] Stopping external device
app.js:17 [INFO] Closing Chromecast Casting
app.js:17 [INFO] Streaming cancelled
app.js:17 [INFO] Closing loading view
app.js:17 [INFO] Streaming cancelled
app.js:17 [INFO] Chromecast: stopped. Listeners removed!

It looks like my chromecast v3 does not support 1080p movies. But instead it works using 720p.

@gabrielgradinaru
Copy link

So far I've found 2 issues related to chromecast:

  1. Incorrect IP address found for chromecast.
app.js:17 [INFO] Device IP: d14c04a5-2f93-df95-65bd-c21ac6000132.local
app.js:17 [INFO] Available IPs: ["fe80::a16f:542:77e3:8654","192.168.14.49","fe80::5451:ffa2:4d2d:b64f","192.168.1.102","fe80::f130:a191:2706:9024","169.254.144.36"]
app.js:17 [INFO] fe80::a16f:542:77e3:8654 picked for external playback

This is a bug in the chromecasts library: mafintosh/chromecasts#32
This causes popcorn-time to pick an incorrect IP address for playback (an IPV6 address in my case).

Unfortunately the chromecasts lib looks like it is not maintainted anymore.
I guess a better option is to use another similar library.

As a workaround, disabling other network interfaces/adapters should do it.

  1. 1080p movies fail to cast.
    The actual issue seems to be the 6 channel audio of the mp4 files. Looks like a chromecast issue.

@team-pct
Copy link
Contributor

https://ci.popcorntime.sh/job/Popcorn-Time-Desktop/417/

@gabrielgradinaru
Copy link

Very fast implementation. Kudos @team-pct.

@Blajpaj
Copy link

Blajpaj commented Apr 30, 2020

I am running Ubuntu 19.10. Since the 417-build I have lost the ability to cast to Chromecast. (Device does not show up at all.)

By reverting to 416, I am able to cast again. Although it has to be in 720p or less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants