Unable to play file from RAR using HTTP API?
#1
Question 
I am trying to build an app that uses the Web-API's to control XBMC.

However, I can't get it to play a file from a rar, outside a rar works fine. Here are the examples.
If I run the following command this is what is returned:
PHP Code:
http://192.168.1.168:8080/xbmcCmds/xbmcHttp?command=GetMediaLocation(video;smb://FILESERVER2/Large/Movie.rar) 
PHP Code:
<html>
<
li>Movie.avi;rar://smb%3a%2f%2fFILESERVER2%2fLarge%2fMovie%2erar/Movie.avi;0
</html

Then to play the file I have tried the following and nothing seems to work.
PHP Code:
http://192.168.1.168:8080/xbmcCmds/xbmcHttp?command=PlayFile(rar://smb://FILESERVER2/Large/Movie.rar/Movie.avi)
http://192.168.1.168:8080/xbmcCmds/xbmcHttp?command=PlayFile(smb://FILESERVER2/Large/Movie.rar/Movie.avi) 

What am I doing wrong?
Reply
#2
You need to urlencode the rar file, in the same way as it was returned to you.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
jmarshall Wrote:You need to urlencode the rar file, in the same way as it was returned to you.



I also tried this, which is exactly what had returned, and I still don't get any results.

PHP Code:
http://192.168.1.168:8080/xbmcCmds/xbmcHttp?command=PlayFile(rar://smb%3a%2f%2fFILESERVER2%2fLarge%2fMovie.rar/Movie.avi) 
Reply
#4
you're already passing a url - you need to encode twice (i.e. once more)
Reply

Logout Mark Read Team Forum Stats Members Help
Unable to play file from RAR using HTTP API?0