 |
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Go to the documentation of this file.
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 {
278 switch (navigation) {
307 if (str ==
"DEFAULT") {
309 }
else if (str ==
"NONE") {
311 }
else if (str ==
"FOREGROUND") {
382 #ifdef MEDIA_PORTABILITY_ENABLED
383 std::string mediaSessionId;
388 std::string correlationToken;
554 #ifdef MEDIA_PORTABILITY_ENABLED
555 std::string mediaSessionId;
558 std::string correlationToken;
587 std::chrono::milliseconds
offset,
593 #ifdef MEDIA_PORTABILITY_ENABLED
594 const std::string& mediaSessionId,
595 const std::string& correlationToken,
606 #ifdef MEDIA_PORTABILITY_ENABLED
607 mediaSessionId{mediaSessionId},
608 correlationToken{correlationToken},
615 virtual void init() = 0;
618 virtual void deInit() = 0;
631 const std::string& accessToken,
632 const std::string& userName,
634 std::chrono::milliseconds tokenRefreshInterval) = 0;
660 #ifdef MEDIA_PORTABILITY_ENABLED
663 const std::string& mediaSessionId,
664 const std::string& correlationToken,
666 const std::string& playbackTarget) = 0;
673 virtual void handleSeek(std::chrono::milliseconds offset) = 0;
694 const std::string& playerId,
695 const std::string& defaultSkillToken) = 0;
698 virtual AdapterState
getState() = 0;
706 virtual std::chrono::milliseconds
getOffset() = 0;
715 shuffleEnabled{
false},
716 repeatEnabled{
false},
733 switch (requestType) {
753 return "PAUSE_RESUME_TOGGLE";
761 return "FAST_FORWARD";
765 return "ENABLE_REPEAT_ONE";
767 return "DISABLE_REPEAT_ONE";
769 return "ENABLE_REPEAT";
771 return "DISABLE_REPEAT";
773 return "ENABLE_SHUFFLE";
775 return "DISABLE_SHUFFLE";
779 return "DESELECT_FAVORITE";
783 return "DESELECT_UNFAVORITE";
787 return "ADJUST_SEEK";
791 return "ADJUST_VOLUME";
795 return "SET_DISPLAY_NAME";
806 return "unknown request type";
832 return "FastForward";
836 return "EnableRepeat";
838 return "EnableRepeatOne";
840 return "DisableRepeat";
842 return "EnableShuffle";
844 return "DisableShuffle";
850 return "SetSeekPosition";
852 return "AdjustSeekPosition";
855 return "unknown operation";
865 switch (changeType) {
867 return "VOICE_INTERACTION";
869 return "PHYSICAL_INTERACTION";
871 return "APP_INTERACTION";
873 return "RULE_TRIGGER";
875 return "PERIODIC_POLL";
878 return "unknown changeTrigger";
892 return "UNFAVORITED";
897 return "unknown rating";
922 return "unknown mediaType";
926 return (shuffleEnabled ==
true) ?
"SHUFFLED" :
"NOT_SHUFFLED";
930 return (repeatEnabled ==
true) ?
"REPEATED" :
"NOT_REPEATED";
936 #endif // ALEXA_CLIENT_SDK_ACSDKEXTERNALMEDIAPLAYERINTERFACES_INCLUDE_ACSDKEXTERNALMEDIAPLAYERINTERFACES_EXTERNALMEDIAADAPTERINTERFACE_H_
Definition: RequiresShutdown.h:32
Definition: PlayRequestor.h:29
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
MediaType
Definition: MediaType.h:29
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0