2011-11-30, 00:46
I'm confused about how to use Player.Open. I checked the wiki but it just says "mixed" for the parameters. I introspected and I saw that there's a path parameter to Player.Open, and I am trying to use it like so..
Doesn't seem to work and doesn't give any JSON response. Also doesn't log anything in the debug log at level 2. Player.Open takes a "path" argument, does that replace the former "file" argument of XBMC.Play? I feel like I'm missing something obvious...
EDIT : Hey, jimk72's post below me answers my question! I guess it takes a Playlist.Item object.. which makes sense! yay!
Code:
{"params": {"path": "smb://192.168.0.200/path/to/my/file.avi"}, "jsonrpc": "2.0", "method": "Player.Open"}
Doesn't seem to work and doesn't give any JSON response. Also doesn't log anything in the debug log at level 2. Player.Open takes a "path" argument, does that replace the former "file" argument of XBMC.Play? I feel like I'm missing something obvious...
EDIT : Hey, jimk72's post below me answers my question! I guess it takes a Playlist.Item object.. which makes sense! yay!