AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Types | Public Member Functions | List of all members
alexaClientSDK::avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface Class Referenceabstract

#include <LocalPlaybackHandlerInterface.h>

Inheritance diagram for alexaClientSDK::avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface:
Inheritance graph
[legend]

Public Types

enum  PlaybackOperation { STOP_PLAYBACK, RESUMABLE_STOP, RESUME_PLAYBACK, TRANSIENT_PAUSE }
 

Public Member Functions

virtual ~LocalPlaybackHandlerInterface ()=default
 
virtual bool localOperation (PlaybackOperation op)=0
 
virtual bool localSeekTo (std::chrono::milliseconds location, bool fromStart)=0
 

Detailed Description

This class allows a local UI to request playback actions using local control

Member Enumeration Documentation

◆ PlaybackOperation

Enumerator
STOP_PLAYBACK 

Stop playback, close pipeline.

RESUMABLE_STOP 

Stop playback, keep pipeline open (for a time), to enable resume.

RESUME_PLAYBACK 

Resume playing after RESUMABLE_STOP, or TRANSIENT_PAUSE.

TRANSIENT_PAUSE 

Transiently pause playback - this is intended to be for a very short period. Not resumable from cloud.

Constructor & Destructor Documentation

◆ ~LocalPlaybackHandlerInterface()

virtual alexaClientSDK::avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface::~LocalPlaybackHandlerInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ localOperation()

virtual bool alexaClientSDK::avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface::localOperation ( PlaybackOperation  op)
pure virtual

Request the handler to perform a local playback operation.

Parameters
opOperation to request
Returns
true if successful, false if the operation cannot be performed locally.

Implemented in alexaClientSDK::acsdkAudioPlayer::AudioPlayer, and alexaClientSDK::acsdkExternalMediaPlayer::ExternalMediaPlayer.

◆ localSeekTo()

virtual bool alexaClientSDK::avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface::localSeekTo ( std::chrono::milliseconds  location,
bool  fromStart 
)
pure virtual

Request the handler to perform a local seek operation.

Parameters
locationPosition to seek to
fromStarttrue to seek to absolute location, false to seek reletive to current location.
Returns
true if successful, false if the operation cannot be performed locally.

Implemented in alexaClientSDK::acsdkAudioPlayer::AudioPlayer, and alexaClientSDK::acsdkExternalMediaPlayer::ExternalMediaPlayer.


The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0