- Thread starter
- #11
But this would mean that the webserver has to be installed on the same machine as the tvserver, right? With the drawing I was going more for a modular setup. So if you install it on a machine you only want to use as a tvserver, only the tvserver webservice is installed/activated. Same for a pure client (only video/pictures/music) is installed. If you want to use the machine as your webserver, the "master" webservice and the websites you want are installed. This machine can then use other webservices (either on the same machine or on the network) and serve everything to the user/application. Of course this would mean that an apache has to be installed on every machine but from a programmers POV I think this is a very nice solution because the only thing a webservice method has to do is to e.g. get all available videos is to:This diagram reflects a singleseat install (tv server + mp client) and a standalone client, there should also be the facility to run a standalone TV server, which is why I went down the client plugin route, the iPiMP web app interfaces with TV server for tv/radio/recording functions and also interfaces with the client plugin for MP client video/audio/control.
- Loop through all the videos that are available in the local database and
- Call itself (or rather the same webservice method) on every machine it is connected to
- Return both, the local result and the remote results (if any) to the caller
No need for duplicate code, you could run the same method for master/slave or singleseat.
You could stream it from the plugin to the server, but the easiest option would be to insist MP clients used UNC shares for video/audio files - I was going to do the latter for iPiMP. You'd have to give clear instructions on why this was required and how exactly to do it, or there's probably some automation that could help. All my sources for My Music, My Videos, Moving Pictures & TV Series are on UNC, it makes a multi seat environment easier to setup & maintain.
Not sure if this is possible but how about virtual directories on the apache webserver? This is possible with IIS but no clue if it works with apache. UNC is quite the obvious solution but it also needs a lot of extra configuration by the user. It will also be difficult for Moving Pictures/MP-TvSeries because the video files can be in different locations.