![]() |
Kodi Documentation
18.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::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()
Get Subtitle stream names.
std::vector< String > XBMCAddon::xbmc::Player::getAvailableVideoStreams | ( | ) |
InfoTagMusic * XBMCAddon::xbmc::Player::getMusicInfoTag | ( | ) |
Function: getMusicInfoTag()
To get music info tag.
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()
Returns the current playing file as a string.
Exception | If player is not playing a file. |
InfoTagRadioRDS * XBMCAddon::xbmc::Player::getRadioRDSInfoTag | ( | ) |
Function: getRadioRDSInfoTag()
To get Radio RDS info tag
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: DisableSubtitles()
Function: getSubtitles()
Get subtitle stream name.
double XBMCAddon::xbmc::Player::getTime | ( | ) |
Function: getTime()
Get playing time.
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()
To get total playing time.
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()
To get video info tag.
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()
Check for external player.
bool XBMCAddon::xbmc::Player::isPlaying | ( | ) |
Function: isPlaying()
Check Kodi is playing something.
bool XBMCAddon::xbmc::Player::isPlayingAudio | ( | ) |
Function: isPlayingAudio()
Check for playing audio.
bool XBMCAddon::xbmc::Player::isPlayingRDS | ( | ) |
Function: isPlayingRDS()
Check for playing radio data system (RDS).
bool XBMCAddon::xbmc::Player::isPlayingVideo | ( | ) |
Function: isPlayingVideo()
Check for playing video.
void XBMCAddon::xbmc::Player::pause | ( | ) |
Function: pause()
Pause or resume playing if already paused.
void XBMCAddon::xbmc::Player::play | ( | ... | ) |
Function: play([item, listitem, windowed, startpos])
Play a item.
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()
Play next item in playlist.
void XBMCAddon::xbmc::Player::playprevious | ( | ) |
Function: playprevious()
Play previous item in playlist.
void XBMCAddon::xbmc::Player::playselected | ( | ... | ) |
Function: playselected(selected)
Play a certain item from the current playlist.
selected | Integer - Item to select |
void XBMCAddon::xbmc::Player::seekTime | ( | ... | ) |
Function: seekTime(seekTime)
Seek time.
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)
Set Audio Stream.
iStream | [int] Audio stream to select for play |
Example:
void XBMCAddon::xbmc::Player::setSubtitles | ( | ... | ) |
Function: setSubtitles(subtitleFile)
Set subtitle file and enable subtitles.
subtitleFile | File to use as source ofsubtitles |
void XBMCAddon::xbmc::Player::setSubtitleStream | ( | ... | ) |
Function: setSubtitleStream(stream)
Set Subtitle Stream.
iStream | [int] Subtitle stream to select for play |
Example:
void XBMCAddon::xbmc::Player::setVideoStream | ( | ... | ) |
Function: setVideoStream(stream)
Set Video Stream.
iStream | [int] Video stream to select for play |
Example:
void XBMCAddon::xbmc::Player::showSubtitles | ( | ... | ) |
Function: showSubtitles(visible)
Enable / disable subtitles.
visible | [boolean] True for visible subtitles. |
Example:
void XBMCAddon::xbmc::Player::stop | ( | ) |
Function: stop()
Stop playing.
void XBMCAddon::xbmc::Player::updateInfoTag | ( | ) |
Function: updateInfoTag(item)
Update info labels for currently playing item.
item | ListItem with new info |
Exception | If player is not playing a file |
Example: