![]() |
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
Kodi's player. More...
Modules | |
Callback functions from Kodi to Add-On | |
Callback functions. | |
Classes | |
class | XBMCAddon::xbmc::Player |
Functions | |
XBMCAddon::xbmc::Player::play (...) | |
| |
XBMCAddon::xbmc::Player::stop () | |
| |
XBMCAddon::xbmc::Player::pause () | |
| |
XBMCAddon::xbmc::Player::playnext () | |
| |
XBMCAddon::xbmc::Player::playprevious () | |
| |
XBMCAddon::xbmc::Player::playselected (...) | |
| |
XBMCAddon::xbmc::Player::isPlaying () | |
| |
XBMCAddon::xbmc::Player::isPlayingAudio () | |
| |
XBMCAddon::xbmc::Player::isPlayingVideo () | |
| |
XBMCAddon::xbmc::Player::isPlayingRDS () | |
| |
XBMCAddon::xbmc::Player::isExternalPlayer () | |
| |
XBMCAddon::xbmc::Player::getPlayingFile () | |
| |
XBMCAddon::xbmc::Player::getPlayingItem () | |
| |
XBMCAddon::xbmc::Player::getTime () | |
| |
XBMCAddon::xbmc::Player::seekTime (...) | |
| |
XBMCAddon::xbmc::Player::setSubtitles (...) | |
| |
XBMCAddon::xbmc::Player::showSubtitles (...) | |
| |
XBMCAddon::xbmc::Player::getSubtitles () | |
| |
XBMCAddon::xbmc::Player::getAvailableSubtitleStreams () | |
| |
XBMCAddon::xbmc::Player::setSubtitleStream (...) | |
| |
XBMCAddon::xbmc::Player::updateInfoTag () | |
| |
XBMCAddon::xbmc::Player::getVideoInfoTag () | |
| |
XBMCAddon::xbmc::Player::getMusicInfoTag () | |
| |
XBMCAddon::xbmc::Player::getRadioRDSInfoTag () | |
| |
XBMCAddon::xbmc::Player::getTotalTime () | |
| |
XBMCAddon::xbmc::Player::getAvailableAudioStreams () | |
| |
XBMCAddon::xbmc::Player::setAudioStream (...) | |
| |
XBMCAddon::xbmc::Player::getAvailableVideoStreams () | |
| |
XBMCAddon::xbmc::Player::setVideoStream (...) | |
| |
Kodi's player.
Class: xbmc.Player()
To become and create the class to play something.
Example:
std::vector< String > XBMCAddon::xbmc::Player::getAvailableAudioStreams | ( | ) |
std::vector< String > XBMCAddon::xbmc::Player::getAvailableSubtitleStreams | ( | ) |
Function: getAvailableSubtitleStreams()
std::vector< String > XBMCAddon::xbmc::Player::getAvailableVideoStreams | ( | ) |
InfoTagMusic * XBMCAddon::xbmc::Player::getMusicInfoTag | ( | ) |
Function: getMusicInfoTag()
Returns the MusicInfoTag of the current playing 'Song'.
Exception | If player is not playing a file or current file is not a music file. |
String XBMCAddon::xbmc::Player::getPlayingFile | ( | ) |
Function: getPlayingFile()
Exception | If player is not playing a file. |
XBMCAddon::xbmcgui::ListItem * XBMCAddon::xbmc::Player::getPlayingItem | ( | ) |
Function: getPlayingItem()
Exception | If player is not playing a file. |
InfoTagRadioRDS * XBMCAddon::xbmc::Player::getRadioRDSInfoTag | ( | ) |
Function: getRadioRDSInfoTag()
Returns the RadioRDSInfoTag of the current playing 'Radio Song if. present'.
Exception | If player is not playing a file or current file is not a rds file. |
String XBMCAddon::xbmc::Player::getSubtitles | ( | ) |
Function: getSubtitles()
double XBMCAddon::xbmc::Player::getTime | ( | ) |
Function: getTime()
Returns the current time of the current playing media as fractional seconds.
Exception | If player is not playing a file. |
double XBMCAddon::xbmc::Player::getTotalTime | ( | ) |
Function: getTotalTime()
Returns the total time of the current playing media in seconds. This is only accurate to the full second.
Exception | If player is not playing a file. |
InfoTagVideo * XBMCAddon::xbmc::Player::getVideoInfoTag | ( | ) |
Function: getVideoInfoTag()
Returns the VideoInfoTag of the current playing Movie.
Exception | If player is not playing a file or current file is not a movie file. |
bool XBMCAddon::xbmc::Player::isExternalPlayer | ( | ) |
Function: isExternalPlayer()
bool XBMCAddon::xbmc::Player::isPlaying | ( | ) |
Function: isPlaying()
bool XBMCAddon::xbmc::Player::isPlayingAudio | ( | ) |
Function: isPlayingAudio()
bool XBMCAddon::xbmc::Player::isPlayingRDS | ( | ) |
Function: isPlayingRDS()
bool XBMCAddon::xbmc::Player::isPlayingVideo | ( | ) |
Function: isPlayingVideo()
void XBMCAddon::xbmc::Player::pause | ( | ) |
Function: pause()
void XBMCAddon::xbmc::Player::play | ( | ... | ) |
Function: play([item, listitem, windowed, startpos])
item | [opt] string - filename, url or playlist |
listitem | [opt] listitem - used with setInfo() to set different infolabels. |
windowed | [opt] bool - true=play video windowed, false=play users preference.(default) |
startpos | [opt] int - starting position when playing a playlist. Default = -1 |
Example:
void XBMCAddon::xbmc::Player::playnext | ( | ) |
Function: playnext()
void XBMCAddon::xbmc::Player::playprevious | ( | ) |
Function: playprevious()
void XBMCAddon::xbmc::Player::playselected | ( | ... | ) |
Function: playselected(selected)
selected | Integer - Item to select |
void XBMCAddon::xbmc::Player::seekTime | ( | ... | ) |
Function: seekTime(seekTime)
Seeks the specified amount of time as fractional seconds. The time specified is relative to the beginning of the currently. playing media file.
seekTime | Time to seek as fractional seconds |
Exception | If player is not playing a file. |
void XBMCAddon::xbmc::Player::setAudioStream | ( | ... | ) |
Function: setAudioStream(stream)
iStream | [int] Audio stream to select for play |
Example:
void XBMCAddon::xbmc::Player::setSubtitles | ( | ... | ) |
Function: setSubtitles(subtitleFile)
subtitleFile | File to use as source ofsubtitles |
void XBMCAddon::xbmc::Player::setSubtitleStream | ( | ... | ) |
Function: setSubtitleStream(stream)
iStream | [int] Subtitle stream to select for play |
Example:
void XBMCAddon::xbmc::Player::setVideoStream | ( | ... | ) |
Function: setVideoStream(stream)
iStream | [int] Video stream to select for play |
Example:
void XBMCAddon::xbmc::Player::showSubtitles | ( | ... | ) |
Function: showSubtitles(visible)
visible | [boolean] True for visible subtitles. |
Example:
void XBMCAddon::xbmc::Player::stop | ( | ) |
Function: stop()
void XBMCAddon::xbmc::Player::updateInfoTag | ( | ) |
Function: updateInfoTag(item)
item | ListItem with new info |
Exception | If player is not playing a file |
Example: