More > JRiver Media Center 32 for Windows

MCWS Help Please

(1/3) > >>

Striker:
Hi, I'm trying to get some of the MCWS commands working.  I currently am running v30 so I can't test this myself.  I'm working on an alternative to my use of the PlayingNow plugin which only works on the 32 bit version of MC.  If I can get the info I need using MCWS then I can give up the PlayingNow plugin and I'd purchase MC 32.

For the v31 command: http://127.0.0.1:52199/MCWS/v1/Playback/Info?Fields=Genre

Can I query for user fields too?

Can I query for the next track fields?  (PlayingNow lets me select fields like "next.artist")
If not, then I guess I could query for the NextFileKey using GetInfo, but it's not working for me.

This does not work for me:

http://localhost:52199/MCWS/v1/Playback/GetInfo?File=54404   // which is a valid key



--- Quote ---      Info
         Get information about the current playback.
         Parameters:
            Zone: The zone the command is targetted for. (default: -1)
            ZoneType: The type of value provided in 'Zone' (ID: zone id; Index: zone index; Name: zone name). (default: ID)
         Response:
            ZoneID: The zone ID of this zone.
            ZoneName: The display name of this zone.
            State: The playback state of the player.
            FileKey: The database key of the playing file.
            NextFileKey: The database key of the next file to play.
            PositionMS: The position of the playback in milliseconds.
            DurationMS: The duration of the playing file in milliseconds.
            ElapsedTimeDisplay: The elapsed playback time as a display friendly string.
            RemainingTimeDisplay: The remaining playback time as a display friendly string.
            TotalTimeDisplay: The total playback time as a display friendly string.
            PositionDisplay: The playback position as a display friendly string.
            PlayingNowPosition: The index of the current track in Playing Now.
            PlayingNowTracks: The number of files in Playing Now.
            PlayingNowPositionDisplay: The current Playing Now position formatted for display.
            PlayingNowChangeCounter: A counter that increments any time the playlist is changed.
            Bitrate: The current bitrate, in kbps.
            Bitdepth: The current bitdepth.
            SampleRate: The current sample rate in Hz.
            Channels: The number of audio channels in the current output.
            Chapter: The current playback chapter.
            Volume: The current volume.
            VolumeDisplay: A display friendly string version of the current volume.
            ImageURL: An image URL for the current file.
            Artist: Artist of current file.
            Album: Album of current file.
            Name: Name of current file.
            Rating: Rating of current file.
            Status: Playback status as a displayable string.

--- End quote ---

mattkhan:
There's no parameter file for getinfo, keys is the right parameter for that call

the quoted doc is for a different API so it's not entirely clear what you are trying to ask though

Striker:
http://localhost:52199/MCWS/v1/Playback/GetInfo?Keys=54404

doesn't work for me either.  Is this a valid MCWS command for MC v30?

This does work for me.

http://localhost:52199/MCWS/v1/Playback/Info?Zone=-1

I'm trying to get info about the current and next track and the playback status.

mattkhan:
It's Files/GetInfo so you need to read the doc more carefully to make sure you have the right URL, use the example link if in doubt then copy that

zybex:
/File/GetInfo to get info about a specific file:
http://localhost:52199/MCWS/v1/File/Getinfo?File=54404&Action=json

/Playback/Info gives you the current and next file being played:
http://localhost:52199/MCWS/v1/Playback/Info

You can use /Playback/Playlist to get all files in the current playlist too.
http://localhost:52199/MCWS/v1/Playback/Playlist?ActiveFileOnly=1&Action=json&Fields=Name,Album,Artist,Genre

(bug? it looks like ActiveFileOnly=1 returns all files in playlist if there's nothing playing, instead of an empty list)

Navigation

[0] Message Index

[#] Next page

Go to full version