![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <MediaPlayerObserverInterface.h>

Classes | |
| struct | TagKeyValueType |
Public Types | |
| enum | TagType { TagType::STRING, TagType::UINT, TagType::INT, TagType::DOUBLE, TagType::BOOLEAN } |
| The different types of metadata "stream tags". More... | |
| using | SourceId = MediaPlayerInterface::SourceId |
| A type that identifies which source is currently being operated on. More... | |
| typedef std::vector< TagKeyValueType > | VectorOfTags |
A player observer will receive notifications when the player starts playing or when it stops playing a stream. A pointer to the MediaPlayerObserverInterface needs to be provided to a MediaPlayer for it to notify the observer.
| using alexaClientSDK::avsCommon::utils::mediaPlayer::MediaPlayerObserverInterface::SourceId = MediaPlayerInterface::SourceId |
A type that identifies which source is currently being operated on.
| typedef std::vector<TagKeyValueType> alexaClientSDK::avsCommon::utils::mediaPlayer::MediaPlayerObserverInterface::VectorOfTags |
|
virtualdefault |
Destructor.
|
inlinevirtual |
This is an indication to the observer that the MediaPlayer has completed buffering of the source specified by the id. This can be sent anytime after a source is set. This notification is part of AudioPlayer's implementation for pre-buffering, and must be called by MediaPlayer implementations for this feature to work properly.
MediaPlayer from further processing.| SourceId | The id of the source to which this callback corresponds to. |
| MediaPlayerState | Metadata about the media player state |
|
inlinevirtual |
This is an indication to the observer that the MediaPlayer's buffer has refilled. This will only be sent after playback has started. Playback will resume.
MediaPlayer from further processing.| SourceId | The id of the source to which this callback corresponds to. |
| MediaPlayerState | Metadata about the media player state |
|
inlinevirtual |
This is an indication to the observer that the MediaPlayer is experiencing a buffer underrun. This will only be sent after playback has started. Playback will be paused until the buffer is filled.
MediaPlayer from further processing.| SourceId | The id of the source to which this callback corresponds to. |
| MediaPlayerState | Metadata about the media player state |
|
pure virtual |
This is an indication to the observer that the MediaPlayer has read its first byte of data.
| id | The id of the source to which this callback corresponds to. |
| state | Metadata about the media player state |
Implemented in alexaClientSDK::captions::CaptionManager.
|
pure virtual |
This is an indication to the observer that the MediaPlayer encountered an error. Errors can occur during playback.
MediaPlayer from further processing.| id | The id of the source to which this callback corresponds to. |
| type | The type of error encountered by the MediaPlayerInterface. |
| error | The error encountered by the MediaPlayerInterface. |
| state | Metadata about the media player state |
Implemented in alexaClientSDK::captions::CaptionManager.
|
pure virtual |
This is an indication to the observer that the MediaPlayer finished the source.
MediaPlayer from further processing.| id | The id of the source to which this callback corresponds to. |
| state | Metadata about the media player state |
Implemented in alexaClientSDK::captions::CaptionManager.
|
inlinevirtual |
This is an indication to the observer that the MediaPlayer has paused playing the source.
MediaPlayer from further processing.| SourceId | The id of the source to which this callback corresponds to. |
| MediaPlayerState | Metadata about the media player state |
Reimplemented in alexaClientSDK::captions::CaptionManager.
|
inlinevirtual |
This is an indication to the observer that the MediaPlayer has resumed playing the source.
MediaPlayer from further processing.| SourceId | The id of the source to which this callback corresponds to. |
| MediaPlayerState | Metadata about the media player state |
Reimplemented in alexaClientSDK::captions::CaptionManager.
|
pure virtual |
This is an indication to the observer that the MediaPlayer has started playing the source specified by the id.
MediaPlayer from further processing.| id | The id of the source to which this callback corresponds to. |
| state | Metadata about the media player state |
Implemented in alexaClientSDK::captions::CaptionManager.
|
inlinevirtual |
This is an indication to the observer that the MediaPlayer has stopped the source.
MediaPlayer from further processing.| SourceId | The id of the source to which this callback corresponds to. |
| MediaPlayerState | Metadata about the media player state |
Reimplemented in alexaClientSDK::captions::CaptionManager.
|
inlinevirtual |
This is an indication to the observer that the MediaPlayer has seeked in the source specified by the id. This can be sent anytime after onPlaybackStarted has been called
MediaPlayer from further processing.| SourceId | The id of the source to which this callback corresponds to. |
| MediaPlayerState | Metadata about the media player state at the point seek started |
| MediaPlayerState | Metadata about the media player state at the point the seek completed, or, if stopped / paused, the point playback will be resumed. |
|
inlinevirtual |
This is an indication to the observer that the MediaPlayer has found tags in the stream. Tags are key value pairs extracted from the metadata of the stream. There can be multiple tags that have the same key. Vector preserves the order of insertion (push_back) which may come in handy.
MediaPlayer from further processing.| SourceId | The id of the source to which this callback corresponds to. |
| VectorOfTags | The vector containing stream tags. |
| MediaPlayerState | Metadata about the media player state |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0