16 #ifndef ALEXA_CLIENT_SDK_ACSDKEXTERNALMEDIAPLAYERINTERFACES_INCLUDE_ACSDKEXTERNALMEDIAPLAYERINTERFACES_EXTERNALMEDIAADAPTERINTERFACE_H_ 17 #define ALEXA_CLIENT_SDK_ACSDKEXTERNALMEDIAPLAYERINTERFACES_INCLUDE_ACSDKEXTERNALMEDIAPLAYERINTERFACES_EXTERNALMEDIAADAPTERINTERFACE_H_ 22 #include <unordered_map> 28 namespace acsdkExternalMediaPlayerInterfaces {
281 switch (navigation) {
310 if (str ==
"DEFAULT") {
312 }
else if (str ==
"NONE") {
314 }
else if (str ==
"FOREGROUND") {
575 std::chrono::milliseconds offset,
582 playContextToken{playContextToken},
585 skillToken{skillToken},
586 playbackSessionId{playbackSessionId},
587 navigation{navigation},
589 playRequestor(playRequestor),
590 playbackTarget{playbackTarget} {
595 virtual void init() = 0;
598 virtual void deInit() = 0;
610 virtual void handleLogin(
614 std::chrono::milliseconds tokenRefreshInterval) = 0;
619 virtual void handleLogout() = 0;
645 virtual void handleSeek(std::chrono::milliseconds offset) = 0;
652 virtual void handleAdjustSeek(std::chrono::milliseconds deltaOffset) = 0;
664 virtual void handleAuthorized(
678 virtual std::chrono::milliseconds getOffset() = 0;
695 RequiresShutdown{adapterName} {
705 switch (requestType) {
725 return "PAUSE_RESUME_TOGGLE";
733 return "FAST_FORWARD";
737 return "ENABLE_REPEAT_ONE";
739 return "DISABLE_REPEAT_ONE";
741 return "ENABLE_REPEAT";
743 return "DISABLE_REPEAT";
745 return "ENABLE_SHUFFLE";
747 return "DISABLE_SHUFFLE";
751 return "DESELECT_FAVORITE";
755 return "DESELECT_UNFAVORITE";
759 return "ADJUST_SEEK";
763 return "ADJUST_VOLUME";
767 return "SET_DISPLAY_NAME";
778 return "unknown request type";
804 return "FastForward";
808 return "EnableRepeat";
810 return "EnableRepeatOne";
812 return "DisableRepeat";
814 return "DisableRepeatOne";
816 return "EnableShuffle";
818 return "DisableShuffle";
824 return "SetSeekPosition";
826 return "AdjustSeekPosition";
829 return "unknown operation";
839 switch (changeType) {
841 return "VOICE_INTERACTION";
843 return "PHYSICAL_INTERACTION";
845 return "APP_INTERACTION";
847 return "RULE_TRIGGER";
849 return "PERIODIC_POLL";
852 return "unknown changeTrigger";
866 return "UNFAVORITED";
871 return "unknown rating";
896 return "unknown mediaType";
900 return (shuffleEnabled ==
true) ?
"SHUFFLED" :
"NOT_SHUFFLED";
904 return (repeatEnabled ==
true) ?
"REPEATED" :
"NOT_REPEATED";
910 #endif // ALEXA_CLIENT_SDK_ACSDKEXTERNALMEDIAPLAYERINTERFACES_INCLUDE_ACSDKEXTERNALMEDIAPLAYERINTERFACES_EXTERNALMEDIAADAPTERINTERFACE_H_
::std::string string
Definition: gtest-port.h:1097
Definition: RequiresShutdown.h:32
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: PlayRequestor.h:29