MediaController.
More...
#include <MediaController.h>
template<
typename T>
class SINRICPRO_3_0_0::MediaController< T >
MediaController.
◆ onMediaControl()
Set callback function for mediaControl
request.
- Parameters
-
cb | Function pointer to a MediaControlCallback function |
- Returns
- void
- See also
- MediaControlCallback
◆ sendMediaControlEvent()
Send mediaControl
event to SinricPro Server indicating devices media control state.
- Parameters
-
mediaControl | String with actual media control
FastForward , Next , Pause , Play , Previous , Rewind , StartOver , Stop |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
- Returns
- the success of sending the even
- Return values
-
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |