Skip to content

Commit

Permalink
Merge pull request #14261 from enen92/doxygenplayerinfolabels
Browse files Browse the repository at this point in the history
[docs] Add missing Player infolabels/boolean conditions
  • Loading branch information
MartijnKaijser committed Aug 11, 2018
2 parents b326d1a + 8ea76b1 commit 2d304b5
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions xbmc/GUIInfoManager.cpp
Expand Up @@ -110,6 +110,11 @@ const infomap integer_bools[] = {{ "isequal", INTEGER_IS_EQUAL },
/// _boolean_,
/// Returns true if the player has an audio file.
/// }
/// \table_row3{ <b>`Player.HasGame`</b>,
/// \anchor Player_HasGame
/// _boolean_,
/// Returns true if the player has a game file.
/// }
/// \table_row3{ <b>`Player.HasMedia`</b>,
/// \anchor Player_HasMedia
/// _boolean_,
Expand Down Expand Up @@ -232,7 +237,7 @@ const infomap integer_bools[] = {{ "isequal", INTEGER_IS_EQUAL },
/// }
/// \table_row3{ <b>`Player.Title`</b>,
/// \anchor Player_Title
/// _boolean_,
/// _string_,
/// Returns the musicplayer title for audio and the videoplayer title for
/// videos.
/// }
Expand Down Expand Up @@ -332,6 +337,38 @@ const infomap integer_bools[] = {{ "isequal", INTEGER_IS_EQUAL },
/// Returns true if pvr channel preview is active (used channel tag different
/// from played tag)
/// }
/// \table_row3{ <b>`Player.TempoEnabled`</b>,
/// \anchor Player_TempoEnabled
/// _boolean_,
/// Returns true if player supports tempo (i.e. speed up/down normal playback speed)
/// }
/// \table_row3{ <b>`Player.IsTempo`</b>,
/// \anchor Player_IsTempo
/// _boolean_,
/// Returns true if player has tempo (i.e. is playing with a playback speed higher or
/// lower than normal playback speed)
/// }
/// \table_row3{ <b>`Player.PlaySpeed`</b>,
/// \anchor Player_PlaySpeed
/// _string_,
/// Returns the player playback speed with the format %1.2f (1.00 means normal
/// playback speed). For Tempo, the default range is 0.80 - 1.50 (it can be changed
/// in advanced settings). If `Player.PlaySpeed` returns a value different from 1.00
/// and `Player.IsTempo` is false it means the player is in ff/rw mode.
/// }
/// \table_row3{ <b>`Player.HasResolutions`</b>,
/// \anchor Player_HasResolutions
/// _boolean_,
/// Returns true if the player is allowed to switch resolution and refresh rate
/// (i.e. if whitelist modes are configured in Kodi's System/Display settings)
/// }
/// \table_row3{ <b>`Player.HasPrograms`</b>,
/// \anchor Player_HasPrograms
/// _boolean_,
/// Returns true if the media file being played has programs\, i.e. groups of streams.
/// Ex: if a media file has multiple streams (quality\, channels\, etc) a program represents
/// a particular stream combo.
/// }
/// \table_row3{ <b>`Player.FrameAdvance`</b>,
/// \anchor Player_FrameAdvance
/// _boolean_,
Expand Down Expand Up @@ -365,11 +402,11 @@ const infomap player_labels[] = {{ "hasmedia", PLAYER_HAS_MEDIA },
{ "showtime", PLAYER_SHOWTIME },
{ "showcodec", PLAYER_SHOWCODEC },
{ "showinfo", PLAYER_SHOWINFO },
{ "title", PLAYER_TITLE },
{ "muted", PLAYER_MUTED },
{ "hasduration", PLAYER_HASDURATION },
{ "passthrough", PLAYER_PASSTHROUGH },
{ "cachelevel", PLAYER_CACHELEVEL }, // labels from here
{ "title", PLAYER_TITLE },
{ "progress", PLAYER_PROGRESS },
{ "progresscache", PLAYER_PROGRESS_CACHE },
{ "volume", PLAYER_VOLUME },
Expand Down Expand Up @@ -1865,7 +1902,7 @@ const infomap musicplayer[] = {{ "title", MUSICPLAYER_TITLE },
/// \table_row3{ <b>`VideoPlayer.Premiered`</b>,
/// \anchor VideoPlayer_Premiered
/// _string_,
/// Release or aired date of the currently playing episode, show, movie or EPG item\, if it's in the database
/// Release or aired date of the currently playing episode\, show\, movie or EPG item\, if it's in the database
/// }
/// \table_row3{ <b>`VideoPlayer.Trailer`</b>,
/// \anchor VideoPlayer_Trailer
Expand Down

0 comments on commit 2d304b5

Please sign in to comment.