|
|
void | addObserver (std::shared_ptr< acsdkNotificationsInterfaces::NotificationRendererObserverInterface > observer) override |
|
void | removeObserver (std::shared_ptr< acsdkNotificationsInterfaces::NotificationRendererObserverInterface > observer) override |
|
bool | renderNotification (std::function< std::pair< std::unique_ptr< std::istream >, const avsCommon::utils::MediaType >()> audioFactory, const std::string &url) override |
|
bool | cancelNotificationRendering () override |
|
|
void | onFirstByteRead (SourceId sourceId, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onPlaybackStarted (SourceId sourceId, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onPlaybackStopped (SourceId sourceId, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onPlaybackFinished (SourceId sourceId, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onPlaybackError (SourceId sourceId, const avsCommon::utils::mediaPlayer::ErrorType &type, std::string error, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
|
void | doShutdown () override |
|
|
void | onFocusChanged (alexaClientSDK::avsCommon::avs::FocusState newFocus, avsCommon::avs::MixingBehavior behavior) override |
|
virtual | ~NotificationRendererInterface ()=default |
|
virtual void | addObserver (std::shared_ptr< NotificationRendererObserverInterface > observer)=0 |
|
virtual void | removeObserver (std::shared_ptr< NotificationRendererObserverInterface > observer)=0 |
|
virtual | ~MediaPlayerObserverInterface ()=default |
|
virtual void | onFirstByteRead (SourceId id, const MediaPlayerState &state)=0 |
|
virtual void | onPlaybackStarted (SourceId id, const MediaPlayerState &state)=0 |
|
virtual void | onPlaybackFinished (SourceId id, const MediaPlayerState &state)=0 |
|
virtual void | onPlaybackError (SourceId id, const ErrorType &type, std::string error, const MediaPlayerState &state)=0 |
|
virtual void | onPlaybackPaused (SourceId, const MediaPlayerState &) |
|
virtual void | onPlaybackResumed (SourceId, const MediaPlayerState &) |
|
virtual void | onPlaybackStopped (SourceId, const MediaPlayerState &) |
|
virtual void | onBufferUnderrun (SourceId, const MediaPlayerState &) |
|
virtual void | onBufferRefilled (SourceId, const MediaPlayerState &) |
|
virtual void | onBufferingComplete (SourceId, const MediaPlayerState &) |
|
virtual void | onSeeked (SourceId, const MediaPlayerState &, const MediaPlayerState &) |
|
virtual void | onTags (SourceId, std::unique_ptr< const VectorOfTags >, const MediaPlayerState &) |
|
| RequiresShutdown (const std::string &name) |
|
virtual | ~RequiresShutdown () |
| Destructor. More...
|
|
const std::string & | name () const |
|
void | shutdown () |
|
bool | isShutdown () const |
|
virtual | ~ChannelObserverInterface ()=default |
|
Implementation of NotificationRendererInterface using the MediaPlayerInterface
Used to notify the observer of the Channel of focus changes. Once called, the client should make a user observable change only and return immediately. Any additional work that needs to be done should be done on a separate thread or after returning. "User observable change" here refers to events that the end user of the product can visibly see or hear. For example, Alexa speech or music playing would be examples of user observable changes. Other work, such as database storing, logging, or communicating via network should be done on a different thread. Not doing so could result in delays for other clients trying to access the Channel.
- Parameters
-
newFocus | The new Focus of the channel. |
behavior | The mixingBehavior for the ChannelObserver to take as per the interrupt model |
- Note
- when newFocus is FocusState::FOREGROUND, the MixingBehavior shall be guaranteed to be PRIMARY when newFocus is FocusState::NONE, the MixingBehavior shall be guaranteed to be MUST_STOP
Implements alexaClientSDK::avsCommon::sdkInterfaces::ChannelObserverInterface.