Plex web player with a twist



It's all good bro. No worries. Checking server access through my firewall was the first thing I tried and it worked fine. I moved from the auto-magic port mapping to a fixed port to take that factor out of the equation.

I tried your development branch about 2 days ago and found that the redis server port caused an error, "connection refused" actually (i.e. when I run "node src/server.js") I get an error that the port couldn't be opened. I even tried changing the port number in config.js in the dev branch, but I still get the same error. Not sure why that new code isn't working for me.

G

UPDATE: Here is the error I get with the latest dev branch:


<br />
events.js:48<br />
        throw arguments[1]; // Unhandled 'error' event<br />
                       ^<br />
Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED<br />
    at RedisClient.on_error (/mnt/cache/Apps/plexjs.deve/node_modules/redis/index.js:140:24)<br />
    at Socket.<anonymous> (/mnt/cache/Apps/plexjs.deve/node_modules/redis/index.js:74:14)<br />
    at Socket.emit (events.js:67:17)<br />
    at Array.0 (net.js:301:14)<br />
    at EventEmitter._tickCallback (node.js:190:38)<br />




I was getting same problem so I downloaded the redis-server from https://github.com/dmajkic/redis/downloads and started it and got past that error.

I then logged into myplex, and plexjs gave me an error that it couldn't connect to my external ip address:32400 instead of using localhost:32400

Troy


Thanks for the hint, I compiled redis for Unraid (slackware) and plexjs connects properly to redis. The log for plexjs now shows that it grabs the plex token. However, I have the same error you do it just never retrieves my library (though my server name does show up) and eventually times out saying it can't connect to "myexternalip:32400". I confirmed that I can reach the server from the outside...

G

This is amazing! My only vague complaints are the size of the video player and for some reason my audio comes through very quietly.

Excellent! I’ve been looking for something like this for ages, was using Subsonic but trying to migrate to this as it’s far cleaner and more beautiful. Hit one snag so far, AVIs aren’t playing, probably need to force transcoding somewhere as I guess Plex is trying to send the raw stream on the 420p files.



Running on Ubuntu 12.04, installed as per instructions.

3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux





Many Kudos and much gratitude.



Edit, seemed to have solved the avi problem, not sure how though(hate that), upgraded PMS to 9.6.4, removed the problem folder in the manager, chmodded & chowned the physical folder, readded and rescanned again with the web manager. All good now, just need to solve the aspect ratio issues.

Very NICE, it will even play on my iPhone via Safari but the UI is a bit cramped and messed up at that resolution… I wonder if users with unsupported clients like the Playbook will be able to play with this client?



Edit:



Thoughts on the layout:

  • On desktops it is a very vertical layout, maybe some more width should be used?
  • The Next Xbox update will add IE9 and web-video streaming I wonder if the out could be optimized for this thus making an almost native Xbox360 client?

This is great, works really nice. Couldn’t select episodes on the iPad (but there’s an app for that :wink: ) but great all the other places I tried. Nothing like watching family guy on an Exchange server :lol:

This works great! Thank you. One problem: I can’t get subtitles to show playing a movie. I can choose subtitles, but nothing happens. Anyone else having the same problem?



Yeah, subtitles are borked for me too.

It's also impossible to select the audio and subtitle track for TV episodes. I'm guessing that's due to the layout inherited from PlexExport (which doesn't display such data for TV episodes).

Yep, now that I’ve experimented a bit here are a few problems I’ve encountered:



Subtitle functionality

Audio track selection

Performance/interactivity problems in “all” view (pagenate lists?)

Multi/Stacked videos only play first segment

jwplayer and ratios are problematic with many videos

Hi,

I should be getting my internet access in my new place soon (fingers crossed…)

Subtitles/Audio track selection should be fixed in the development branch but it requires to have redis installed on your server as well.

So if you can wait a little I should have an update soon (once I have Internet home …)



Jeff

Kudos Jeff. Amazing work. Worked first time on my WHS.



I have PMS running as a windows service already following these steps, Run as service. I have a couple of requests

  1. Web Player running as a service
  2. Web Player user level authentication/management, to share access with others without giving out your myplex creds



    Thoughts?

dalim you should be able to share control via myplex credentials already. Just go into myplex, share with someone, they create a my Plex account. When they log into your webUI with their account they should see the library’s you shared to them. They should not need anything else for this to work.



Thanks lazybones i didn't think of that. Just tried it and it works.

Also i managed to get this running at system startup using task scheduler. Just copied and renamed the bat file 'nodejsvars.bat' to something like 'startplexweb.bat' and then edited it to include the following two lines at the bottom

cd C:\Users\dalim\Documents\GitHub\plexjs<br />
node src/server.js



Task scheduler runs it at startup using the options 'run whether user is logged in or not'

You can ignore my requests for now Jeff and carry on improving this awesome player. ;)

Hi guys,

so I now have a stable internet access (if not fast …). I did a quick update of the development branch with some pending changes. Nothing major.

I updated jwplayer to the latest version (anything that can improve hls support in flash is welcome) and did some cleanup.



Subtitles & Language selection should be working fine in this version.



Only caveat is that you have to install a redis server on the computer you put plexjs on (planning on saving per user settings and want to work on couchpotato+sickbeard integration, so I need some way to store user settings).



Jeff




Thanks for your continued work on this. Hope your move went smoothly as possible. Us Unraid folk seem to still be having problems. It seems routing related. If I run Slackware or Ubuntu in a VM in Virtualbox on my laptop and access PlexJS with NAT or a Bridged adapter it works fine, both inside my LAN or from the outside. When I just run PlexJS (main or dev branch) on my Unraid box it fails to load anything besides the server name. It hangs right after the GET /server/ call. I've tried what you suggested of trying to see if the server is routing the external address properly internally on the LAN and it is... I get the XML results from direct calls to the server. Still trying new things, but running out of options...

I even tried putting my Unraid server IP into the DMZ so all traffic would be routed unimpeded with no success...

G

Sorry it’s not working.

Which version of node.js are you using on your unraid? I’ve tested PlexJS with Node.JS 0.6.15+ (and 0.8.x seems to be working fine as well).

Somebody had issues with older node.js version



Also, can you try to clone the repo again?



We’ll find what’s wrong



Jeff

Ok, so for all unraid users, could you do the following please?

[list][]clone latest dev version (development branch on github). This will require to have a redis server running on the same machine. Do a clone in a new directory[]run “npm rebuild” in the plexjs folder. Some node.js modules do compile some code. Maybe something is wrong here[]start plexjs[/list]

I’d need the following information:

[list][
]version of plex media server you’re using[]version of node.js[]browser + version you uselogs from plexjs (there should be more logs now[/list]



Please include all the logs. There will probably be X-Plex-Token parameters, hide the value of the parameter.



Jeff

Thanks Jeff. Will work on this and get back to you with some answers…




I did the above and the compile fails saying


<br />
[ws v0.4.20] Attempting to compile blazing fast native extensions.<br />
[ws v0.4.20] Native code compile failed (but the module will still work):<br />
[ws v0.4.20] The native extensions are faster, but not required.<br />
[ws v0.4.20] On Windows, native extensions require Visual Studio and Python.<br />
[ws v0.4.20] On Unix, native extensions require Python, make and a C++ compiler.<br />
[ws v0.4.20] Start npm with --ws:verbose to show compilation output (if any).<br />
...<br />




I do have a C++ compiler and Python available and installed, so I'm not sure why it's failing...



Ok, here are some answers:

[*] I am running Plex 0.9.6.5 (same issues with 0.9.6.4 which I was running until today)
[*] I am using NodeJS 0.6.19 (tried .15 too, same result)
[*] I have tried Chrome (latest), Firefox (latest), IE 9 - all of these work when I point to my VM version of PlexJS
[*] PlexJS doesn't seem to be writing logs by default anywhere, unless I am not looking in the right place so I just piped the console output to a file and obfuscated my plex token with "x"s... attached to this message - In this instance I was doing a direct call to PlexJS on the internal network (I did not change the config file at all)

plexjs.log (3.36 KB)

Thanks again for your assistance!

G