11 #include "AddonCallback.h" 12 #include "AddonString.h" 13 #include "Alternative.h" 14 #include "Exception.h" 15 #include "InfoTagGame.h" 16 #include "InfoTagMusic.h" 17 #include "InfoTagRadioRDS.h" 18 #include "InfoTagVideo.h" 21 #include "cores/IPlayerCallback.h" 22 #include "swighelper.h" 30 XBMCCOMMONS_STANDARD_EXCEPTION(PlayerException);
32 typedef Alternative<String, const PlayList* > PlayParameter;
66 void playPlaylist(
const PlayList* playlist = NULL,
67 bool windowed =
false,
int startpos=-1);
68 void playCurrent(
bool windowed =
false);
71 #if !defined SWIG && !defined DOXYGEN_SHOULD_SKIP_THIS 72 static PlayParameter defaultPlayParameter;
75 #ifndef DOXYGEN_SHOULD_SKIP_THIS 83 #ifdef DOXYGEN_SHOULD_USE_THIS 126 void play(
const PlayParameter& item = Player::defaultPlayParameter,
130 #ifdef DOXYGEN_SHOULD_USE_THIS 141 #ifdef DOXYGEN_SHOULD_USE_THIS 152 #ifdef DOXYGEN_SHOULD_USE_THIS 163 #ifdef DOXYGEN_SHOULD_USE_THIS 174 #ifdef DOXYGEN_SHOULD_USE_THIS 184 void playselected(
int selected);
200 #ifdef DOXYGEN_SHOULD_USE_THIS 214 virtual void onPlayBackStarted();
218 #ifdef DOXYGEN_SHOULD_USE_THIS 231 virtual void onAVStarted();
235 #ifdef DOXYGEN_SHOULD_USE_THIS 248 virtual void onAVChange();
251 #ifdef DOXYGEN_SHOULD_USE_THIS 261 virtual void onPlayBackEnded();
264 #ifdef DOXYGEN_SHOULD_USE_THIS 274 virtual void onPlayBackStopped();
277 #ifdef DOXYGEN_SHOULD_USE_THIS 287 virtual void onPlayBackError();
290 #ifdef DOXYGEN_SHOULD_USE_THIS 300 virtual void onPlayBackPaused();
303 #ifdef DOXYGEN_SHOULD_USE_THIS 313 virtual void onPlayBackResumed();
316 #ifdef DOXYGEN_SHOULD_USE_THIS 326 virtual void onQueueNextItem();
329 #ifdef DOXYGEN_SHOULD_USE_THIS 330 onPlayBackSpeedChanged(
int speed);
344 virtual void onPlayBackSpeedChanged(
int speed);
347 #ifdef DOXYGEN_SHOULD_USE_THIS 360 virtual void onPlayBackSeek(
int time,
int seekOffset);
363 #ifdef DOXYGEN_SHOULD_USE_THIS 364 onPlayBackSeekChapter(...);
375 virtual void onPlayBackSeekChapter(
int chapter);
379 #ifdef DOXYGEN_SHOULD_USE_THIS 392 #ifdef DOXYGEN_SHOULD_USE_THIS 402 bool isPlayingAudio();
405 #ifdef DOXYGEN_SHOULD_USE_THIS 415 bool isPlayingVideo();
418 #ifdef DOXYGEN_SHOULD_USE_THIS 432 #ifdef DOXYGEN_SHOULD_USE_THIS 445 bool isPlayingGame();
448 #ifdef DOXYGEN_SHOULD_USE_THIS 463 bool isExternalPlayer();
466 #ifdef DOXYGEN_SHOULD_USE_THIS 480 String getPlayingFile();
483 #ifdef DOXYGEN_SHOULD_USE_THIS 500 #ifdef DOXYGEN_SHOULD_USE_THIS 517 #ifdef DOXYGEN_SHOULD_USE_THIS 532 void seekTime(
double seekTime);
535 #ifdef DOXYGEN_SHOULD_USE_THIS 545 void setSubtitles(
const char* subtitleFile);
548 #ifdef DOXYGEN_SHOULD_USE_THIS 568 void showSubtitles(
bool bVisible);
571 #ifdef DOXYGEN_SHOULD_USE_THIS 581 String getSubtitles();
584 #ifdef DOXYGEN_SHOULD_USE_THIS 585 getAvailableSubtitleStreams();
594 std::vector<String> getAvailableSubtitleStreams();
597 #ifdef DOXYGEN_SHOULD_USE_THIS 598 setSubtitleStream(...);
617 void setSubtitleStream(
int iStream);
621 #ifdef DOXYGEN_SHOULD_USE_THIS 648 #ifdef DOXYGEN_SHOULD_USE_THIS 668 #ifdef DOXYGEN_SHOULD_USE_THIS 686 #ifdef DOXYGEN_SHOULD_USE_THIS 703 #ifdef DOXYGEN_SHOULD_USE_THIS 704 getRadioRDSInfoTag();
721 #ifdef DOXYGEN_SHOULD_USE_THIS 735 double getTotalTime();
738 #ifdef DOXYGEN_SHOULD_USE_THIS 739 getAvailableAudioStreams();
748 std::vector<String> getAvailableAudioStreams();
751 #ifdef DOXYGEN_SHOULD_USE_THIS 771 void setAudioStream(
int iStream);
774 #ifdef DOXYGEN_SHOULD_USE_THIS 775 getAvailableVideoStreams();
784 std::vector<String> getAvailableVideoStreams();
787 #ifdef DOXYGEN_SHOULD_USE_THIS 807 void setVideoStream(
int iStream);
810 #if !defined SWIG && !defined DOXYGEN_SHOULD_SKIP_THIS 811 void OnPlayBackStarted(
const CFileItem& file)
override;
812 void OnAVStarted(
const CFileItem& file)
override;
813 void OnAVChange()
override;
814 void OnPlayBackEnded()
override;
815 void OnPlayBackStopped()
override;
816 void OnPlayBackError()
override;
817 void OnPlayBackPaused()
override;
818 void OnPlayBackResumed()
override;
819 void OnQueueNextItem()
override;
820 void OnPlayBackSpeedChanged(
int iSpeed)
override;
821 void OnPlayBackSeek(int64_t iTime, int64_t seekOffset)
override;
822 void OnPlayBackSeekChapter(
int iChapter)
override;
Definition: InfoTagRadioRDS.h:52
Definition: InfoTagGame.h:48
Definition: InfoTagVideo.h:858
Defining LOG_LIFECYCLE_EVENTS will log all instantiations, deletions and also reference countings (in...
Definition: Addon.cpp:25
Definition: IPlayerCallback.h:18
Definition: PlayList.h:49
Definition: ListItem.h:53
This class is the superclass for all API classes that are expected to be able to handle cross-languag...
Definition: AddonCallback.h:23
Definition: InfoTagMusic.h:47
Represents a file on a share.
Definition: FileItem.h:102