d8ahazard / Cast.bundle

A Plex Channel To Interact With Local Cast Devices, Via Plex Media Server
59 stars 11 forks source link

Cast Plugin doesn't detect Chromecast #8

Closed KaraokeStu closed 5 years ago

KaraokeStu commented 6 years ago

Hi,

I have connected my Plex server and my home network via OpenVPN.

If I connect from another machine to the OpenVPN network, Chrome detects my Chromecast. However, the Cast plugin does not see the Chromecast at all.

2018-05-11 10:31:56,490 (7fe139b9b700) :  INFO (core:349) - Starting framework core - Version: 2.6.3, Build: 31d3c0c (Fri May 04 12:00:22 UTC 2018)
2018-05-11 10:31:56,490 (7fe139b9b700) :  DEBUG (core:361) - Using the elevated policy
2018-05-11 10:31:56,491 (7fe139b9b700) :  DEBUG (core:450) - Starting runtime component.
2018-05-11 10:31:56,492 (7fe139b9b700) :  DEBUG (core:450) - Starting caching component.
2018-05-11 10:31:56,492 (7fe139b9b700) :  DEBUG (core:450) - Starting data component.
2018-05-11 10:31:56,492 (7fe139b9b700) :  DEBUG (core:450) - Starting networking component.
2018-05-11 10:31:56,492 (7fe139b9b700) :  DEBUG (networking:284) - Loaded HTTP cookies
2018-05-11 10:31:56,493 (7fe139b9b700) :  DEBUG (networking:452) - Setting the default network timeout to 20.0
2018-05-11 10:31:56,493 (7fe139b9b700) :  DEBUG (core:450) - Starting localization component.
2018-05-11 10:31:56,493 (7fe139b9b700) :  INFO (localization:409) - Setting the default locale to en-us
2018-05-11 10:31:56,493 (7fe139b9b700) :  DEBUG (core:450) - Starting messaging component.
2018-05-11 10:31:56,494 (7fe139b9b700) :  DEBUG (core:450) - Starting debugging component.
2018-05-11 10:31:56,494 (7fe139b9b700) :  DEBUG (core:450) - Starting services component.
2018-05-11 10:31:56,494 (7fe121ffb700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.Cast'
2018-05-11 10:31:56,494 (7fe139b9b700) :  DEBUG (core:450) - Starting myplex component.
2018-05-11 10:31:56,495 (7fe139b9b700) :  DEBUG (core:450) - Starting notifications component.
2018-05-11 10:31:56,613 (7fe139b9b700) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.Cast in namespace 'metadata'
2018-05-11 10:31:56,618 (7fe139b9b700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2018-05-11 10:31:56,632 (7fe121ffb700) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2018-05-11 10:31:56,632 (7fe139b9b700) :  DEBUG (runtime:1117) - Created a thread named 'load_all_services'
2018-05-11 10:31:56,633 (7fe121ffb700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QK$
2018-05-11 10:31:56,634 (7fe139b9b700) :  DEBUG (runtime:1117) - Created a thread named 'get_server_info'
2018-05-11 10:31:56,634 (7fe120ef9700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400'
2018-05-11 10:31:56,634 (7fe139b9b700) :  DEBUG (core:150) - Finished starting framework core
2018-05-11 10:31:56,635 (7fe139b9b700) :  DEBUG (core:560) - Loading plug-in code
2018-05-11 10:31:56,811 (7fe139b9b700) :  DEBUG (core:566) - Finished loading plug-in code
2018-05-11 10:31:57,074 (7fe120ef9700) :  DEBUG (core:538) - Machine identifier is xxxxx
2018-05-11 10:31:57,075 (7fe120ef9700) :  DEBUG (core:539) - Server version is 1.13.0.5023-31d3c0c65
2018-05-11 10:31:57,151 (7fe121ffb700) :  DEBUG (services:362) - Loaded services
2018-05-11 10:31:57,157 (7fe1216fa700) :  DEBUG (services:438) - No shared code to load
2018-05-11 10:31:57,217 (7fe139b9b700) :  DEBUG (runtime:640) - Adding a prefix handler for 'Cast' ('/chromecast')
2018-05-11 10:31:57,218 (7fe139b9b700) :  DEBUG (runtime:640) - Adding a prefix handler for 'Cast' ('/applications/Cast')
2018-05-11 10:31:57,219 (7fe139b9b700) :  DEBUG (log_helper:7) - Registering LoggerHandler for dependency: pychromecast
2018-05-11 10:31:57,219 (7fe139b9b700) :  DEBUG (log_helper:7) - Registering LoggerHandler for dependency: zeroconf
2018-05-11 10:31:57,219 (7fe139b9b700) :  DEBUG (__init__:71) - Cache timer started, updating in 60 minutes
2018-05-11 10:31:57,220 (7fe139b9b700) :  DEBUG (__init__:84) - UpdateCache called
2018-05-11 10:31:57,220 (7fe139b9b700) :  DEBUG (__init__:671) - Re-fetching devices
2018-05-11 10:31:57,220 (7fe139b9b700) :  DEBUG (log_helper:28) - zeroconf: zeroconf:Adding u'0.0.0.0' to multicast group
2018-05-11 10:31:57,221 (7fe0ffc3e700) :  DEBUG (log_helper:28) - zeroconf: zeroconf:Sending <DNSOutgoing:{multicast=True, flags=0, questions=[question[ptr,in,_googlecast._tcp.local.]], answers=[], authorities=[], additionals=[]}> (40 b$
2018-05-11 10:31:57,721 (7fe0ffc3e700) :  DEBUG (log_helper:28) - zeroconf: zeroconf:Sending <DNSOutgoing:{multicast=True, flags=0, questions=[question[ptr,in,_googlecast._tcp.local.]], answers=[], authorities=[], additionals=[]}> (40 b$

Is there a way to get the cast plugin to attempt discovery on the local subnet(s), rather than 0.0.0.0?

d8ahazard commented 5 years ago

Please check out https://github.com/FlexTV.bundle for the latest iteration of the plugin.

Also, there's an experimental stand-alone app for homes without a PMS server, but you want to control cast devices at https://github.com/d8ahazard/FlexConnect - and docker - https://github.com/d8ahazard/docker-FlexConnect

If you have issues, feel free to report them there!