API Docs for: 5.0.3
Show:

Sharing Class

Defined in: native\UpNp.js:1321
Module: Native

Class to handle/manage media sharing (UPnP/DLNA) Accessible via app.sharing

Methods

addRemoteServerAsync

() Promise

Defined in native\UpNp.js:1370

Adds manually a remote server to browse/play content from, is useful when the server cannot be auto-discovered (e.g. is located outside of LAN)

Returns:

createNewServer

() MediaServer

Defined in native\UpNp.js:1419

Creates new server with default values

Returns:

getActivePlayer

() RemotePlayer

Defined in native\UpNp.js:1400

Gets active remote player (to be controlled by MediaMonkey player)

Returns:

getAvailablePlayers

() SharedList

Defined in native\UpNp.js:1380

Gets the list of available players on the LAN (list of RemotePlayer class)

Returns:

getMultiZonePlayers

() SharedList

Defined in native\UpNp.js:1389

Gets the list of available players that are configured for multi zone playback

Returns:

getRemoteServers

() SharedList

Defined in native\UpNp.js:1360

Gets the list of available servers on the LAN (list of RemoteServer class) plus those manually added via app.sharing.addRemoteServerAsync()

Returns:

getServers

() SharedList

Defined in native\UpNp.js:1351

Gets the configured MediaMonkey server list (list of MediaServer class)

Returns:

getServieIsInstalled

()

Defined in native\UpNp.js:1460

Returns whether service for MediaMonkey is installed

installService

(
  • username
  • password
)

Defined in native\UpNp.js:1444

Installs service for MediaMonkey allowing to browse media server even if MediaMonkey is not running (and not logged into the user account).

Parameters:

  • username String
  • password String

setActivePlayerUUID

(
  • uuid
)

Defined in native\UpNp.js:1409

Sets active remote player (to be controlled by MediaMonkey player) by its UUID, empty value sets to 'local' player

Parameters:

  • uuid String

setPlayerControlAllowed

(
  • enable
)

Defined in native\UpNp.js:1428

Allows/disallows remote control of MediaMonkey player via UPnP/DLNA

Parameters:

  • enable Boolean

start

()

Defined in native\UpNp.js:1437

Starts sharing (runs configured media servers)

uninstallService

()

Defined in native\UpNp.js:1453

Uninstalls service for MediaMonkey