AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <CaptionTimingAdapter.h>
Public Member Functions | |
CaptionTimingAdapter (std::shared_ptr< CaptionPresenterInterface > presenter, std::shared_ptr< DelayInterface > delayInterface) | |
virtual | ~CaptionTimingAdapter () override |
CaptionTimingAdapterInterface methods | |
virtual void | queueForDisplay (const CaptionFrame &captionFrame, bool autostart) override |
virtual void | reset () override |
virtual void | start () override |
virtual void | stop () override |
virtual void | pause () override |
Public Member Functions inherited from alexaClientSDK::captions::CaptionTimingAdapterInterface | |
virtual | ~CaptionTimingAdapterInterface ()=default |
A helper class to handle the timing of when to display CaptionFrame
objects for the appropriate media sources.
alexaClientSDK::captions::CaptionTimingAdapter::CaptionTimingAdapter | ( | std::shared_ptr< CaptionPresenterInterface > | presenter, |
std::shared_ptr< DelayInterface > | delayInterface | ||
) |
Constructor.
presenter | The CaptionPresenterInterface which should receive caption frames that are ready to display. |
delayInterface | The DelayInterface to use while waiting to display the next caption frame. |
|
overridevirtual |
Destructor.
|
overridevirtual |
Pauses the playback of captions, keeping track of the last caption frame shown.
Implements alexaClientSDK::captions::CaptionTimingAdapterInterface.
|
overridevirtual |
Enqueues a CaptionFrame
object for display. This method must begin the serial presentation of the enqueued caption frames if such presentation is not already taking place and autostart
is true. The order of the caption frames must be maintained as first-in-first-out.
captionFrame | The CaptionFrame object to be enqueued for display. |
autostart | Determines if presentation should begin immediately if it has not already; defaults to true. |
Implements alexaClientSDK::captions::CaptionTimingAdapterInterface.
|
overridevirtual |
Resets the state of this adapter, in preparation for new captions content.
Implements alexaClientSDK::captions::CaptionTimingAdapterInterface.
|
overridevirtual |
Resumes the playback of captions content, starting from the caption frame following the last one shown.
Implements alexaClientSDK::captions::CaptionTimingAdapterInterface.
|
overridevirtual |
Stops the playback of captions, forgetting which caption frame was last shown.
Implements alexaClientSDK::captions::CaptionTimingAdapterInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0