Reply to thread

Why not build a basic webserver in and let individual plugins provide html content based on the current skin to the built in browser. Then let main mediaportal control the plugins as usual.


It would mean that GUI plugin writers would need to adopt a number of interfaces and you might have to define a custom URI.


Can you imagine it you browse to your HTPC and you get the (almost) same interface as the portal on the HTPC, any actions you carry out would be reflected on the pc.


To implement (just a rough idea)


Navigate through all the controls (including plugins, I presume the GUI ones inherit from control some way downstream?)


Then


Capture the controls image (possible guys? my directx is hazy)

Write it to a stream or output to file

Render html with control positions and custom uri links

Webserver redirects request to appropriate plugin


e.g


htpc://<ip or host>:<custom port>/<plugin filename (no path)>/<method>/<parameters>


Then use reflection to find the loaded plugin and call method with parameters. The plugin should generate a checksum so that the uri cannot be tampered with.


Not simple but would be amazing, I am getting sometime off come the end of this month and may take a crack at it.


Top Bottom