berrberr / streamkeys

Global media player hotkeys for chrome
MIT License
544 stars 232 forks source link

Plex web client is not working with stream keys #41

Closed bizob2828 closed 9 years ago

bizob2828 commented 9 years ago

I load up my plex web client and it is not working. Verified it is not my chrome version or macbook as it works in Last.fm and google music. Any ideas?

bizob2828 commented 9 years ago

nevermind. I was not accessing plex via plex.tv, was acessing via a local IP. Learned something new today about access my plex server.

berrberr commented 9 years ago

Ah cool didn't know you could do that.

The way Streamkeys inject's its self into music player pages is a regular expression match on the domain. If it sees the domain as just an IP it wont match anything.

If you want it to inject into local pages you could try to edit your hosts file to point a music site domain to your local IP. Also note that the regular expression ignores the domain extension. So you could try adding something like this to your hosts file:

local.ip plex.local

Disclaimer: I have never tried this :smile: I think it should work though. If you try it and it does let me know!

bizob2828 commented 9 years ago

Thanks for the insight, never had a chance to dig in the source code. But I'm happy with accessing plex via their public URL, as I said didn't know it existed :smile: