Http-api To Retrieve Currently Playing Thumbnail

I’d like to be able to retrieve the thumbnail of the currently playing piece of media using the HTTP-API. Using:



http://localhost:3000/xbmcCmds/xbmcHttp?command=GetCurrentlyPlaying(/path/to/PlexDirectory/test.jpg)



I was able to create a jpeg of the thumbnail, now the problem is serving it up. I'd like to use the web server built into Plex. The web server root directory is located in the application bundle (I'm pretty new to the Mac platform, so please excuse any ignorance I might be showing) so somehow saving "test.jpg" to that folder doesn't seem right.

Obviously, I could use the web server built into Leopard. Then you get into folder permissions, not to mention running 2 services when 1 should do.

Is there something I am missing? Should I just save it to the /web directory and be done with it?

Thanks for the help.


That'd be what I'd do - there may be a way to set up an alias for another dir with the built in webserver, but I don't know...

I the built in webserver honours symlinks, you could use that and drop a symlink pointing to somewhere in your home dir and use that.

(built in webserver == Plex one, not OSX bundled apache)

Using OSX's bundled apache is also trivial..

enable it, then:


<br />
<br />
sudo mkdir /Library/WebServer/Documents/some_dir_name<br />
sudo chown geoff /Library/WebServer/Documents/some_dir_name<br />
<br />




Save your stuff to /Library/WebServer/Documents/some_dir_name
that content will be accessible at http://machine_name/some_dir_name

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.