Play specific video in file through HTTP Commands
#1
Question 
I'm really new to XBMC, I've wanted to play with it for a while but haven't really had the need. Now it looks as though it's the perfect solution to many projects I have coming up.

Here's what I would like to do.

I have several videos on my Mac Mini that I am able to access through XBMC on my PC. I'm using an iPad remote system called iRule and am successfully controlling it through HTTP.

I need to be able to start any video at anytime. I'd like an image of the video as well as data that I will input. I'd like to be able to press the icon and the movie starts.

This is what I found on the Wiki page "PlayMedia(media[,isdir][,1],[playoffset=xx])" I feel like this is what I need but I have no idea how to put it together.

Here's an example of a command I'm using "192.168.1.55:8080xbmcCmds/xbmcHttp?command=ExecBuiltIn(activatewindow(videolibrary,movietitles))"

What should it look like if I'm trying to access a shared file? Videos are on my Mac Mini.
Reply
#2
I've just tried:

Code:
curl http://localhost:8080/xbmcCmds/xbmcHttp?command=PlayFile(D:\XBMC\Video\after-the-apocalypse.flv)

and my XBMC started playing the film. To play from a server use something like:

Code:
curl "http://localhost:8080/xbmcCmds/xbmcHttp?command=PlayFile(smb://myserver/myshare/Misc/after-the-apocalypse.flv)"
Reply
#3
(2012-06-30, 12:00)jhsrennie Wrote: I've just tried:

Code:
curl http://localhost:8080/xbmcCmds/xbmcHttp?command=PlayFile(D:\XBMC\Video\after-the-apocalypse.flv)

and my XBMC started playing the film. To play from a server use something like:

Code:
curl "http://localhost:8080/xbmcCmds/xbmcHttp?command=PlayFile(smb://myserver/myshare/Misc/after-the-apocalypse.flv)"

That's cool - good tip Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Play specific video in file through HTTP Commands0