Originally Posted by ddgdl
I'm interested in this as well, though I only need the first part. Like others, I'm running a RS2000 connected by a network cable with a static IP, using kodi dsplayer on a htpc running madvr as my main source. The only potential wrinkle is that on top of kodi I always auto-run the plex for kodi plugin
I also run plex for kodi plugin. But that does add complications because my method requires you use kodi external player support. You cannot use dsplayer any longer. The reason is that we intercept the external player with our app. This app will do whatever is needed based on the movie being requested, then it will launch the actual player. DSplayer cannot be called externally, so it's out. That leaves MPC-HC or zoom player.
For plex for kodi, this also has some side effects. You won't be able to use its resume support. Internally, it won't mark items as watched anymore (its a bug using external player). I fixed the bug with my own version of plex for kodi which auto marks as watched after 5 mins.
Is your plex media server running locally? Is it on a windows machine? The other issue is plex serves up links for the files even when direct played that look like https://plex.tv/192-168-1-1-server/s...stuff/file.mkv
. While these can be played by our external players, it doesn't help with getting the filename to do useful things but it is something that can perhaps also be worked around. On my end, I have my custom kodi translate these to real file paths that are accessible via my network share (such as g:\tv\elementary\elementary s01e03.mvk). If you're plex server is running on something not windows then that path is going to be something like /tvshows/elementary/elementary s01e03.mkv which will not be mapable via windows file mappings. However, if we are just looking at the filename for a string like 16x9 or HDR then it wouldn't matter and would be good enough.
Another option for plex is to implement something using its new plex media server webhooks. In this case, the plex media server can hit any web URL of your choice when a video starts playing, stops playing etc. This would require coding up some sort of web server app on the HTPC that waited for these connections then based on what was the event and file, it made the needed changes to the projector. Honestly, this isn't too hard to do either. You could install something like apache for windows with php and use php to shell out commands when it receives them. This assumes webhooks can work off local links otherwise you'd have to expose this to the public by opening router ports, which would be a bummer.