/**
* Player class.
*
- * Player([core]) -- Creates a new Player with as default the xbmc music playlist.
- *
- * core : (optional) Use a specified playcore instead of letting xbmc decide the playercore to use.
- * - xbmc.PLAYER_CORE_AUTO
- * - xbmc.PLAYER_CORE_DVDPLAYER
- * - xbmc.PLAYER_CORE_MPLAYER
- * - xbmc.PLAYER_CORE_PAPLAYER
+ * Player() -- Creates a new Player class.
*/
// This class is a merge of what was previously in xbmcmodule/player.h
EPLAYERCORES playerCore;
public:
- /**
- * Construct a Player proxying the given generated binding. The
- * construction of a Player needs to identify whether or not any
- * callbacks will be executed asynchronously or not.
- */
+ // Construct a Player proxying the given generated binding. The
+ // construction of a Player needs to identify whether or not any
+ // callbacks will be executed asynchronously or not.
Player(int playerCore = EPC_NONE);
virtual ~Player(void);
* example:
* - listitem = xbmcgui.ListItem('Ironman')
* - listitem.setInfo('video', {'Title': 'Ironman', 'Genre': 'Science Fiction'})
- * - xbmc.Player( xbmc.PLAYER_CORE_MPLAYER ).play(url, listitem, windowed)
+ * - xbmc.Player().play(url, listitem, windowed)
*/
void playStream(const String& item = emptyString, const XBMCAddon::xbmcgui::ListItem* listitem = NULL, bool windowed = false);
/**
* play() -- try to play the current item in the current playlist.
- *
- * windowed : [opt] bool - true=play video windowed, false=play users preference.(default)
+ *
+ * windowed : [opt] bool - true=play video windowed, false=play users preference (default).
*
* example:
- * - xbmc.Player( xbmc.PLAYER_CORE_MPLAYER ).play()
+ *
+ * - xbmc.Player().play()
*/
void playCurrent(bool windowed = false);
*/
double getTotalTime() throw (PlayerException);
+ // Player_getAvailableAudioStreams
+ /**
+ * getAvailableAudioStreams() -- get Audio stream names
+ */
std::vector<String>* getAvailableAudioStreams();
/**
- * setAudioStream(stream) -- set Audio Stream
- *
+ * setAudioStream(stream) -- set Audio Stream.
+ *
* stream : int
- *
+ *
* example:
+ *
* - setAudioStream(1)
*/
void setAudioStream(int iStream);
AddonClass::Ref<Control> control; // previously pObject
#endif
+ /**
+ * getId() -- Returns the action's current id as a long or 0 if no action is mapped in the xml's.
+ */
long getId() { TRACE; return id; }
+
+ /**
+ * getButtonCode() -- Returns the button code for this action.
+ */
long getButtonCode() { TRACE; return buttonCode; }
+
+ /**
+ * getAmount1() -- Returns the first amount of force applied to the thumbstick n.
+ */
float getAmount1() { TRACE; return fAmount1; }
+
+ /**
+ * getAmount2() -- Returns the second amount of force applied to the thumbstick n.
+ */
float getAmount2() { TRACE; return fAmount2; }
};