Page tree


Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Flagged the player conditions that have not been implemented.

...

The conditions listed in the following sections can be used in the <visible> tag.  Note that the names of the conditions are not case sensitive, and you can code them in the style mixture of upper and lower case that you prefer.  All of the following styles are valid:

player.hasmedia
player.hasMedia
player.HasMedia
Player.HasMedia

...

Code Block
languagexml
player.hasmedia
player.hasaudio
player.hasvideo
player.playing
player.paused
player.rewinding
player.forwarding
player.rewinding2x
player.rewinding4x
player.rewinding8x
player.rewinding16x
player.rewinding32x
player.forwarding2x
player.forwarding4x
player.forwarding8x
player.forwarding16x
player.forwarding32x
player.canrecord         (not implemented)
player.recording         (not implemented)
player.displayafterseek  (not implemented)
player.seekbar           (not implemented)
player.seektime          (not implemented)
player.progress          (not implemented)
player.seeking           (not implemented)
player.showtime          (not implemented)
player.showcodec         (not implemented)
player.showinfo          (not implemented)
player.time              (not implemented)
player.timeremaining     (not implemented)
player.duration          (not implemented)
player.volume            (not implemented)
player.muted
player.hasduration

weather conditions

For details of the player conditions implemented, refer to the file "GUIInfoManager.cs" in the MediaPortal source.

Weather conditions

Code Block
languagexml
weather.conditions
weather.temperature
weather.location
weather.isfetched

...

System conditions

Code Block
languagexml
system.date
system.date.isbetween(mm.dd,mm.dd)
system.time
system.time.isbetween(hh:mm,hh:mm)
system.cputemperature
system.gputemperature
system.fanspeed
system.freespace(c)  // d,e,f,g are also avail
system.buildversion
system.builddate
system.hasnetwork
system.fps
system.kaiconnected
system.kaienabled
system.hasmediadvd
system.dvdready
system.trayopen
system.autodetection
system.freememory
system.screenmode
system.screenwidth
system.screenheight
system.currentwindow
system.currentcontrol
system.xboxnickname
system.dvdlabel
system.haslocks

...

Musicplayer conditions

...

None implemented

Video OSD conditions

Code Block
languagexml
#VideoOSD.AudioVideoDelayPossible

true when ffdshow is in graph otherwise to false e.g. <visible>string.equals(#VideoOSD.AudioVideoDelayPossible, false)</visible>

...

Playlist conditions

...

None implemented.

Musicpartymode conditions

Code Block
languagexml
musicpartymode.enabled
musicpartymode.songsplayed
musicpartymode.matchingsongs
musicpartymode.matchingsongspicked
musicpartymode.matchingsongsleft
musicpartymode.relaxedsongspicked
musicpartymode.randomsongspicked

...

Listitem conditions

...

None implemented.

Visualisation conditions

Code Block
languagexml
visualisation.locked
visualisation.preset
visualisation.name
visualisation.enabled

...

Skin conditions

Code Block
languagexml
skin.hassetting(setting)
skin.hastheme(theme)

...

Plugin conditions

Code Block
languagexml
plugin.isenabled(Plugin Name)

...

Window conditions

Code Block
languagexml
window.isosdvisible
window.ispauseosdvisible
window.isactive(window id)
window.istopmost(window id)
window.isvisible(window id)
window.previous(window id)
window.next(window id)

...

Facadeview conditions

Code Block
languagexml
facadeview.album
facadeview.filmstrip
facadeview.list
facadeview.largeicons
facadeview.playlist
facadeview.smallicons

...

Control conditions

Code Block
languagexml
control.hasthumb(controlId)
control.hasfocus(controlId)
control.hastext(controlId)
control.isvisible(controlId)

...

String conditions

Code Block
languagexml
string.equals(val1,val2)   will return true if val1 equals val2
string.equals(val1)        will return true if val1 has a length > 0
string.contains(val1,val2) will return true if val1 contains val2
string.starts(val1,val2)   will return true if val1 starts with val2

...

Topbar conditions

Code Block
languagexml
topbar.focused   will return true if any topbar control (i.e. button) is focused 
topbar.visible   will return true if topbar is visible on screen

...