MPExtended / WifiRemote

Remote access plugin for MediaPortal
GNU General Public License v3.0
4 stars 5 forks source link

"playmovie" or "playepisode" #25

Closed maikkley closed 9 years ago

maikkley commented 9 years ago

When i send a command like:

{ 
    "Type":"movingpictures", 
    "Action":"playmovie", 
    "MovieId":4 
} 

The movie doenst play! API-Version 12. Is there a known issue?

Shukuyen commented 9 years ago

Nothing I know of yet, no. @DieBagger or @johanj do you know of any issue here?

johanj commented 9 years ago

The command above looks right and we use it in MPiV without issues.

One alternative is to use a playlist.
-playlist clear -mpext enque id mediatype provider etc. -playlist play

I have however had issues with the playfile command where the file started to play in MP. But, Mp crached when stopping media.

maikkley commented 9 years ago

Mhhh, i tested it with MP 1.8.0 and WifiRemote API 12... maybe its an issue of the constellation. I will test this again...

Edit Is there a logfile for WifiRemote? Where i can find it?

maikkley commented 9 years ago

As "MovieId" i passed the MpExtended MovieId,is it right?

maikkley commented 9 years ago

Found it! In my code i make "JSON.stringify" of the command, this converts the MovieId 4 to a string "4". This is not accepted in WifiRemote. There is no casting vom string to int32.

johanj commented 9 years ago

I checked that in your example and there you have an int and no string;) Good that it works now.

Logging is made in the standard MediaPortal log.

maikkley commented 9 years ago

Yes i my example it was right, but before i send the Command i make a JSON.stringify. That makes the int32 to a String :-/