16 #ifndef ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_LIVEVIEWCONTROLLER_LIVEVIEWCONTROLLERPRESENTATIONADAPTER_H_ 17 #define ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_LIVEVIEWCONTROLLER_LIVEVIEWCONTROLLERPRESENTATIONADAPTER_H_ 21 #include <unordered_set> 24 #include <rapidjson/document.h> 25 #include <rapidjson/writer.h> 45 namespace sampleApplications {
46 namespace ipcServerSampleApp {
47 namespace liveViewController {
59 ,
public std::enable_shared_from_this<LiveViewControllerPresentationAdapter> {
69 static std::shared_ptr<LiveViewControllerPresentationAdapter>
create(
70 const std::shared_ptr<ipc::IPCHandlerRegistrationInterface>& ipcHandlerRegistrar,
71 const std::shared_ptr<AplClientBridge>& aplClientBridge);
77 std::shared_ptr<presentationOrchestratorInterfaces::PresentationInterface> presentation)
override;
93 LiveViewControllerInterface::Response
start(
94 std::unique_ptr<LiveViewControllerInterface::StartLiveViewRequest> request)
override;
95 LiveViewControllerInterface::Response
stop()
override;
100 std::weak_ptr<alexaLiveViewControllerInterfaces::LiveViewControllerObserverInterface> observer)
override;
102 std::weak_ptr<alexaLiveViewControllerInterfaces::LiveViewControllerObserverInterface> observer)
override;
124 std::chrono::steady_clock::time_point startOfSpeechTimestamp,
125 std::shared_ptr<
const std::vector<char>> KWDMetadata =
nullptr)
override;
130 std::chrono::steady_clock::time_point startOfSpeechTimestamp = std::chrono::steady_clock::now())
override;
134 std::chrono::steady_clock::time_point startOfSpeechTimestamp = std::chrono::steady_clock::now(),
148 std::shared_ptr<presentationOrchestratorInterfaces::PresentationOrchestratorClientInterface> poClient);
175 const std::shared_ptr<ipc::IPCHandlerRegistrationInterface>& ipcHandlerRegistrar,
176 const std::shared_ptr<AplClientBridge>& aplClientBridge);
188 void dismissPresentation();
193 void executeDismissPresentation();
198 void executeOnPresentationDismissed();
204 void executeSetCameraUIMicState(
bool enabled);
212 void executeNotifyMicrophoneStateChanged(
bool enabled);
215 std::shared_ptr<presentationOrchestratorInterfaces::PresentationInterface> m_presentation;
218 std::shared_ptr<presentationOrchestratorInterfaces::PresentationOrchestratorClientInterface>
219 m_presentationOrchestratorClient;
225 std::shared_ptr<ipc::LiveViewCameraHandler> m_liveViewCameraIPCHandler;
228 std::shared_ptr<common::InteractionManager> m_interactionManager;
237 std::unique_ptr<LiveViewControllerInterface::StartLiveViewRequest> m_startLiveViewRequest;
253 #endif // ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_LIVEVIEWCONTROLLER_LIVEVIEWCONTROLLERPRESENTATIONADAPTER_H_ void setInteractionManager(std::shared_ptr< common::InteractionManager > interactionManager)
std::future< bool > notifyOfHoldToTalkStart(capabilityAgents::aip::AudioProvider holdToTalkAudioProvider, std::chrono::steady_clock::time_point startOfSpeechTimestamp=std::chrono::steady_clock::now(), avsCommon::avs::AudioInputStream::Index beginIndex=capabilityAgents::aip::AudioInputProcessor::INVALID_INDEX) override
Pointer to the PresentationInterface presentation association.
void removeObserver(std::weak_ptr< alexaLiveViewControllerInterfaces::LiveViewControllerObserverInterface > observer) override
void windowIdReport(const std::string &message) override
LiveViewControllerInterface::Response setCameraState(alexaLiveViewControllerInterfaces::CameraState cameraState) override
void cameraFirstFrameRendered(const std::string &message) override
std::future< bool > notifyOfWakeWord(capabilityAgents::aip::AudioProvider wakeWordAudioProvider, avsCommon::avs::AudioInputStream::Index beginIndex, avsCommon::avs::AudioInputStream::Index endIndex, std::string keyword, std::chrono::steady_clock::time_point startOfSpeechTimestamp, std::shared_ptr< const std::vector< char >> KWDMetadata=nullptr) override
Pointer to the PresentationInterface presentation association.
::std::string string
Definition: gtest-port.h:1097
Single-thread executor implementation.
Definition: Executor.h:45
void onPresentationStateChanged(presentationOrchestratorInterfaces::PresentationRequestToken id, presentationOrchestratorInterfaces::PresentationState newState) override
void onPresentationAvailable(presentationOrchestratorInterfaces::PresentationRequestToken id, std::shared_ptr< presentationOrchestratorInterfaces::PresentationInterface > presentation) override
Definition: AudioProvider.h:31
std::future< bool > notifyOfTapToTalk(capabilityAgents::aip::AudioProvider tapToTalkAudioProvider, avsCommon::avs::AudioInputStream::Index beginIndex=capabilityAgents::aip::AudioInputProcessor::INVALID_INDEX, std::chrono::steady_clock::time_point startOfSpeechTimestamp=std::chrono::steady_clock::now()) override
Pointer to the PresentationInterface presentation association.
Definition: PresentationObserverInterface.h:30
void onStateChanged(State state) override
std::shared_ptr< AplLiveViewExtension > AplLiveViewExtensionPtr
Definition: AplLiveViewExtension.h:115
Generic implementation of NotifierInterface.
Definition: Notifier.h:38
void onASRProfileChanged(const std::string &profile) override
void cameraMicrophoneStateChanged(const std::string &message) override
PresentationState
Definition: PresentationTypes.h:48
void handleChangeCameraMicStateRequest(bool micOn) override
Definition: LiveViewControllerPresentationAdapter.h:52
LiveViewControllerInterface::Response start(std::unique_ptr< LiveViewControllerInterface::StartLiveViewRequest > request) override
}
ASRProfile
Definition: ASRProfile.h:31
static std::shared_ptr< LiveViewControllerPresentationAdapter > create(const std::shared_ptr< ipc::IPCHandlerRegistrationInterface > &ipcHandlerRegistrar, const std::shared_ptr< AplClientBridge > &aplClientBridge)
alexaLiveViewControllerInterfaces::Configuration getConfiguration() override
Index
Index used for setting access.
Definition: StateReportGeneratorTest.cpp:41
Definition: LiveViewCameraHandlerInterface.h:36
Definition: LiveViewControllerInterface.h:34
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
void setPresentationOrchestrator(std::shared_ptr< presentationOrchestratorInterfaces::PresentationOrchestratorClientInterface > poClient)
}
void handleSetCameraMicrophoneState(bool enabled)
uint64_t PresentationRequestToken
Definition: PresentationTypes.h:25
std::future< bool > notifyOfHoldToTalkEnd() override
Pointer to the PresentationInterface presentation association.
CameraState
Definition: LiveViewControllerTypes.h:108
Definition: AplLiveViewExtensionObserverInterface.h:30
bool addObserver(std::weak_ptr< alexaLiveViewControllerInterfaces::LiveViewControllerObserverInterface > observer) override
Definition: SpeechInteractionHandlerInterface.h:37
std::future< bool > notifyOfTapToTalkEnd() override
Pointer to the PresentationInterface presentation association.
LiveViewControllerInterface::Response stop() override
tuple message
Definition: gtest_output_test.py:331
void handleCameraExitRequest() override
bool onNavigateBack(presentationOrchestratorInterfaces::PresentationRequestToken id) override
Definition: LiveViewControllerConfiguration.h:29