11 #include "AddonCallback.h" 12 #include "AddonString.h" 13 #include "Alternative.h" 14 #include "Exception.h" 15 #include "InfoTagMusic.h" 16 #include "InfoTagRadioRDS.h" 17 #include "InfoTagVideo.h" 20 #include "cores/IPlayerCallback.h" 21 #include "swighelper.h" 29 XBMCCOMMONS_STANDARD_EXCEPTION(PlayerException);
31 typedef Alternative<String, const PlayList* > PlayParameter;
65 void playPlaylist(
const PlayList* playlist = NULL,
66 bool windowed =
false,
int startpos=-1);
67 void playCurrent(
bool windowed =
false);
70 #if !defined SWIG && !defined DOXYGEN_SHOULD_SKIP_THIS 71 static PlayParameter defaultPlayParameter;
74 #ifndef DOXYGEN_SHOULD_SKIP_THIS 82 #ifdef DOXYGEN_SHOULD_USE_THIS 120 void play(
const PlayParameter& item = Player::defaultPlayParameter,
124 #ifdef DOXYGEN_SHOULD_USE_THIS 135 #ifdef DOXYGEN_SHOULD_USE_THIS 146 #ifdef DOXYGEN_SHOULD_USE_THIS 157 #ifdef DOXYGEN_SHOULD_USE_THIS 168 #ifdef DOXYGEN_SHOULD_USE_THIS 178 void playselected(
int selected);
194 #ifdef DOXYGEN_SHOULD_USE_THIS 208 virtual void onPlayBackStarted();
212 #ifdef DOXYGEN_SHOULD_USE_THIS 225 virtual void onAVStarted();
229 #ifdef DOXYGEN_SHOULD_USE_THIS 242 virtual void onAVChange();
245 #ifdef DOXYGEN_SHOULD_USE_THIS 255 virtual void onPlayBackEnded();
258 #ifdef DOXYGEN_SHOULD_USE_THIS 268 virtual void onPlayBackStopped();
271 #ifdef DOXYGEN_SHOULD_USE_THIS 281 virtual void onPlayBackError();
284 #ifdef DOXYGEN_SHOULD_USE_THIS 294 virtual void onPlayBackPaused();
297 #ifdef DOXYGEN_SHOULD_USE_THIS 307 virtual void onPlayBackResumed();
310 #ifdef DOXYGEN_SHOULD_USE_THIS 320 virtual void onQueueNextItem();
323 #ifdef DOXYGEN_SHOULD_USE_THIS 324 onPlayBackSpeedChanged(
int speed);
338 virtual void onPlayBackSpeedChanged(
int speed);
341 #ifdef DOXYGEN_SHOULD_USE_THIS 354 virtual void onPlayBackSeek(
int time,
int seekOffset);
357 #ifdef DOXYGEN_SHOULD_USE_THIS 358 onPlayBackSeekChapter(...);
369 virtual void onPlayBackSeekChapter(
int chapter);
373 #ifdef DOXYGEN_SHOULD_USE_THIS 386 #ifdef DOXYGEN_SHOULD_USE_THIS 396 bool isPlayingAudio();
399 #ifdef DOXYGEN_SHOULD_USE_THIS 409 bool isPlayingVideo();
412 #ifdef DOXYGEN_SHOULD_USE_THIS 426 #ifdef DOXYGEN_SHOULD_USE_THIS 441 bool isExternalPlayer();
444 #ifdef DOXYGEN_SHOULD_USE_THIS 458 String getPlayingFile();
461 #ifdef DOXYGEN_SHOULD_USE_THIS 478 #ifdef DOXYGEN_SHOULD_USE_THIS 495 #ifdef DOXYGEN_SHOULD_USE_THIS 510 void seekTime(
double seekTime);
513 #ifdef DOXYGEN_SHOULD_USE_THIS 523 void setSubtitles(
const char* subtitleFile);
526 #ifdef DOXYGEN_SHOULD_USE_THIS 546 void showSubtitles(
bool bVisible);
549 #ifdef DOXYGEN_SHOULD_USE_THIS 559 String getSubtitles();
562 #ifdef DOXYGEN_SHOULD_USE_THIS 563 getAvailableSubtitleStreams();
572 std::vector<String> getAvailableSubtitleStreams();
575 #ifdef DOXYGEN_SHOULD_USE_THIS 576 setSubtitleStream(...);
595 void setSubtitleStream(
int iStream);
599 #ifdef DOXYGEN_SHOULD_USE_THIS 627 #ifdef DOXYGEN_SHOULD_USE_THIS 645 #ifdef DOXYGEN_SHOULD_USE_THIS 662 #ifdef DOXYGEN_SHOULD_USE_THIS 663 getRadioRDSInfoTag();
680 #ifdef DOXYGEN_SHOULD_USE_THIS 694 double getTotalTime();
697 #ifdef DOXYGEN_SHOULD_USE_THIS 698 getAvailableAudioStreams();
707 std::vector<String> getAvailableAudioStreams();
710 #ifdef DOXYGEN_SHOULD_USE_THIS 730 void setAudioStream(
int iStream);
733 #ifdef DOXYGEN_SHOULD_USE_THIS 734 getAvailableVideoStreams();
743 std::vector<String> getAvailableVideoStreams();
746 #ifdef DOXYGEN_SHOULD_USE_THIS 766 void setVideoStream(
int iStream);
769 #if !defined SWIG && !defined DOXYGEN_SHOULD_SKIP_THIS 770 void OnPlayBackStarted(
const CFileItem& file)
override;
771 void OnAVStarted(
const CFileItem& file)
override;
772 void OnAVChange()
override;
773 void OnPlayBackEnded()
override;
774 void OnPlayBackStopped()
override;
775 void OnPlayBackError()
override;
776 void OnPlayBackPaused()
override;
777 void OnPlayBackResumed()
override;
778 void OnQueueNextItem()
override;
779 void OnPlayBackSpeedChanged(
int iSpeed)
override;
780 void OnPlayBackSeek(int64_t iTime, int64_t seekOffset)
override;
781 void OnPlayBackSeekChapter(
int iChapter)
override;
Definition: InfoTagRadioRDS.h:52
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:52
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