Codecore Logo
Quick Search
»
Advanced Search »

J. River Media Center Driver

RSS
Image
The J. River Media Center Driver interfaces with the J.River Media Center software to play music, video and display pictures.

This driver requires that the Desktop Server application be running on the machine running JRMC. This is because J. River Media Center runs on the windows desktop within a user session.

This driver has been tested with the J River Media Center version 13.

Manufacturer: J. River, Inc

Table of Contents [Hide/Show]


Configuration Settings
Events
   Zone Shuffle State Changed
   Zone Repeat Mode Changed
   Zone Playlist Position Changed
   Zone Playlist Length Changed
   Zone Current Track Album Changed
   Zone Current Track Artist Changed
   Zone Current Track Title Changed
   Zone Mute State Changed
   Zone Volume Changed
   Zone Mode Changed
   Ready State Changed
   Playing
   Paused
   Stopped
   Track Changed
Instance Properties
   ZoneNames
   Connected
   ZoneCount
   ZoneShuffleStates
   ZoneRepeatModes
   ZonePlaylistPositions
   ZonePlaylistLengths
   ZoneCurrentTrackPaths
   ZoneCurrentTrackAlbums
   ZoneCurrentTrackArtists
   ZoneCurrentTrackTitles
   ZoneMuteStates
   ZoneVolumes
   ZoneCurrentTrackPositions
   ZoneCurrentTrackDurations
   ZoneTransportModes
   ZoneCurrentTrackCoverArts
   DeviceDisplayName
   DeviceStartTime
   DeviceLifecycleStage
   DeviceIsRunningAndReady
Instance Methods
   PlayZone ( Number )
   StopZone ( Number )
   PauseZone ( Number )
   ToggleZonePause ( Number )
   PlayNextZoneTrack ( Number )
   PlayPreviousZoneTrack ( Number )
   OffsetZoneVolume ( Number, Number )
   MuteZone ( Number )
   UnmuteZone ( Number )
   SetZoneVolume ( Number, Number )
   SetZoneCurrentTrackPosition ( Number, TimeSpan )
   SetZoneTransportMode ( Number, String )
   PlayZoneItem ( Number, String )
   PlayZoneItems ( Number, Array )
   ClearZonePlaylist ( Number )
   AppendZonePlaylistItem ( Number, String )
   InsertZonePlaylistItem ( Number, String )
   RemoveZonePlaylistItem ( Number, Number )
   MoveZonePlaylistItem ( Number, Number, Number )
   SetPropertyForDuration ( String, TimeSpan, Object, Object )
   SetPropertyForDuration ( String, Number, TimeSpan, Object, Object )


Configuration Settings

  • Host Name : The host name or ip address of the machine which will run J. River Media Center. The Desktop Server application must be running on that machine.

Events

Zone Shuffle State Changed

Occurs when the shuffle state of the player changes.

Whenever Filter:

  • PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Zone Repeat Mode Changed

Occurs when the repeat mode of the player changes.

Whenever Filter:

  • PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Zone Playlist Position Changed

Occurs when the index of the currently playing song changes on a zone.

Whenever Filter:

  • PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Zone Playlist Length Changed

Occurs when the total number of tracks in a zone's playlist changes.

Whenever Filter:

  • PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Zone Current Track Album Changed

Occurs when the current track's album changes.

Whenever Filter:

  • PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Zone Current Track Artist Changed

Occurs when the current track's artist changes.

Whenever Filter:

  • PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Zone Current Track Title Changed

Occurs when the current track's title changes.

Whenever Filter:

  • PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Zone Mute State Changed

Occurs when the current mute setting for the player changes.

Whenever Filter:

  • PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Zone Volume Changed

Occurs when the current volume setting for the player changes.

Whenever Filter:

  • PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Zone Mode Changed

Occurs when the player's mode changes.

Whenever Filter:

  • PropertyIndex : The index in the property's array. This is used for device properties that represent an array (or list) of values.

EventArgs:

  • Number Index : The index within the property array.
  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Ready State Changed

The device's running and ready state changed.

Whenever Filter:

none

EventArgs:

  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Playing

Occurs when the player mode changes to playing.

Whenever Filter:

none

EventArgs:

none

Paused

Occurs when the player mode changes to paused.

Whenever Filter:

none

EventArgs:

none

Stopped

Occurs when the player mode changes to stopped.

Whenever Filter:

none

EventArgs:

none

Track Changed

Occurs when the currently playing song changes.

Whenever Filter:

none

EventArgs:

none

Instance Properties

ZoneNames

Gets the name of all zones.

Accessibility : Read Only

Type: Array

Connected

Gets the connected state of the player, true if the driver is connected to the J. River Media Center application, otherwise false.

Accessibility : Read Only

Type: Boolean

ZoneCount

Gets the number of zones supported by this media player driver.

Accessibility : Read Only

Type: Number

ZoneShuffleStates

Gets or set the shuffle state of a zone playlist.

Accessibility : Read Only

Type: Array

ZoneRepeatModes

Gets or sets the repeat mode which indicates if the player will stop playing at the end of the zone's playlist, repeat the current song indefinitely, or repeat the zone's playlist indefinitely. A value of '0' indicates that the player will stop at the end of the playlist, '1' indicates that the player will repeat the current song indefinitely and a value of '2' indicates that the player will repeat the entire playlist indefinitely (not supported).

Accessibility : Read Only

Type: Array

ZonePlaylistPositions

Gets or sets the playlist song position that is currently playing by index. When setting, a one-based value may be used to indicate which song to play.

Accessibility : Read Only

Type: Array

ZonePlaylistLengths

Gets the total number of tracks in each zone's playlist.

Accessibility : Read Only

Type: Array

ZoneCurrentTrackPaths

Gets the path for the currently playing track for each zone.

Accessibility : Read Only

Type: Array

ZoneCurrentTrackAlbums

Gets the current track's album property for all zones.

Accessibility : Read Only

Type: Array

ZoneCurrentTrackArtists

Gets the current track's artist property for all zones.

Accessibility : Read Only

Type: Array

ZoneCurrentTrackTitles

Gets the current track's title property for all zones.

Accessibility : Read Only

Type: Array

ZoneMuteStates

Gets or sets a value indicating if a zone's volume setting for the player is muted.

Accessibility : Read Only

Type: Array

ZoneVolumes

Gets or sets the current volume setting for the player zones. The scale is 0 to 100.

Accessibility : Read Only

Type: Array

ZoneCurrentTrackPositions

Gets or sets the current time position that the each zone's current song has been playing.

Accessibility : Read Only

Type: Array

ZoneCurrentTrackDurations

Gets the duration of a zone's currently playing song.

Accessibility : Read Only

Type: Array

ZoneTransportModes

Gets or sets a zone's transport mode as 'play', 'stop' or 'pause'.

Accessibility : Read Only

Type: Array

ZoneCurrentTrackCoverArts

Gets the cover art for the each zone's current track.

Accessibility : Read Only

Type: Array

DeviceDisplayName

The display name for this device.

Accessibility : Read Only

Type: String

DeviceStartTime

The date and time when this device was started.

Accessibility : Read Only

Type: DateTime

DeviceLifecycleStage

The current lifecycle stage of the device. The stages in order are: Pending Start, Starting, Running, Stopping

Accessibility : Read Only

Type: Number

DeviceIsRunningAndReady

Indicates if the device is ready for use, ie it is in the Running lifecycle stage and all properties are valid and all methods are ready to be used.

Accessibility : Read Only

Type: Boolean

Instance Methods

PlayZone ( Number )

Starts playing the a zone's playlist.

Syntax

void PlayZone( Number zoneID )

Parameters

zoneID : The zone to play.

StopZone ( Number )

Stops playing the a zone's playlist.

Syntax

void StopZone( Number zoneID )

Parameters

zoneID : The zone to stop.

PauseZone ( Number )

Pauses the playing of a zone's playlist.

Syntax

void PauseZone( Number zoneID )

Parameters

zoneID : The zone to pause.

ToggleZonePause ( Number )

Toggles the pause state of a zones playlist.

Syntax

void ToggleZonePause( Number zoneID )

Parameters

zoneID : The zone to toggle pause.

PlayNextZoneTrack ( Number )

Plays the next track in a zone's playlist.

Syntax

void PlayNextZoneTrack( Number zoneID )

Parameters

zoneID : The zone to toggle pause.

PlayPreviousZoneTrack ( Number )

Plays the previous track in a zone's playlist.

Syntax

void PlayPreviousZoneTrack( Number zoneID )

Parameters

zoneID : The zone to toggle pause.

OffsetZoneVolume ( Number, Number )

Offsets the current volume setting for the player. Positive numbers increase the volume by the specified number and negative numbers decrease the volume. The full volume scale is 0 to 100.

Syntax

void OffsetZoneVolume( Number zoneID, Number offset )

Parameters

zoneID : The zone to toggle pause.
offset : The amount to offset the volume.

MuteZone ( Number )

Turn the mute on for a zone.

Syntax

void MuteZone( Number zoneID )

Parameters

zoneID : The zone number to mute.

UnmuteZone ( Number )

Turn the mute off for a zone.

Syntax

void UnmuteZone( Number zoneID )

Parameters

zoneID : The zone number to unmute.

SetZoneVolume ( Number, Number )

Change the Volume for a Zone.

Syntax

void SetZoneVolume( Number zoneID, Number volume )

Parameters

zoneID : The zone number.
volume : Volume (0=Quietest, 100=Loudest)

SetZoneCurrentTrackPosition ( Number, TimeSpan )

Set's a zone's track position.

Syntax

void SetZoneCurrentTrackPosition( Number zoneID, unknown position )

Parameters

zoneID : The zone number.
position : The track position.

SetZoneTransportMode ( Number, String )

Set's a zone's transport mode as 'play', 'stop' or 'pause'.

Syntax

void SetZoneTransportMode( Number zoneID, String mode )

Parameters

zoneID : The zone number.
mode : The mode, one of 'play', 'stop', or 'pause'.

PlayZoneItem ( Number, String )

Adds the specified song URL, playlist or directory contents into a zone's playlist and plays starting at the first item. Any songs previously in the playlist are discarded.

Syntax

void PlayZoneItem( Number zoneID, String item )

Parameters

zoneID : The zone number to play the item on.
item : A song URL, playlist, file or directory path

PlayZoneItems ( Number, Array )

Adds the specified song URLs, playlists or directory contents into a zone's playlist and plays starting at the first item. Any songs previously in the playlist are discarded.

Syntax

void PlayZoneItems( Number zoneID, Array locations )

Parameters

zoneID : The zone number to play the items on.
locations : An array of ScriptString objects representing song URLs, playlists, files or directory paths.

ClearZonePlaylist ( Number )

Clears a zone's playlist and stops the player.

Syntax

void ClearZonePlaylist( Number zoneID )

Parameters

zoneID : The zone number.

AppendZonePlaylistItem ( Number, String )

Adds the specified song URL, playlist or directory contents to the end of a zone's playlist.

Syntax

void AppendZonePlaylistItem( Number zoneID, String item )

Parameters

zoneID : The zone number to play the items on.
item : A song URL, playlist, file or directory path

InsertZonePlaylistItem ( Number, String )

Inserts the specified song URL, playlist or directory contents to be played immediately after the current song in a zone's playlist.

Syntax

void InsertZonePlaylistItem( Number zoneID, String item )

Parameters

zoneID : The zone number to play the items on.
item : A song URL, playlist, file or directory path

RemoveZonePlaylistItem ( Number, Number )

Removes the song at the specified index from a zone's playlist.

Syntax

void RemoveZonePlaylistItem( Number zoneID, Number index )

Parameters

zoneID : The zone number to play the items on.
index : The index of the item to remove. The first item is at index 1.

MoveZonePlaylistItem ( Number, Number, Number )

Moves the song at the specified index to a new index in a zone's playlist.

Syntax

void MoveZonePlaylistItem( Number zoneID, Number fromIndex, Number toIndex )

Parameters

zoneID : The zone number to play the items on.
fromIndex : The index to the item to move.
toIndex : The destination index.

SetPropertyForDuration ( String, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

SetPropertyForDuration ( String, Number, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, Number arrayIndex, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
arrayIndex : The property's array index to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

Privacy Policy | Conditions Of Use

Copyright ©2014 Codecore Technologies, All rights reserved.