|
virtual SourceId | attachmentSetSource (std::shared_ptr< avsCommon::avs::attachment::AttachmentReader > attachmentReader, const avsCommon::utils::AudioFormat *audioFormat)=0 |
|
virtual SourceId | streamSetSource (std::shared_ptr< std::istream > stream, bool repeat)=0 |
|
virtual SourceId | urlSetSource (const std::string &url)=0 |
|
virtual | ~MediaPlayerInterface ()=default |
|
virtual SourceId | setSource (std::shared_ptr< avsCommon::avs::attachment::AttachmentReader > attachmentReader, const avsCommon::utils::AudioFormat *format=nullptr, const SourceConfig &config=emptySourceConfig())=0 |
|
virtual SourceId | setSource (std::shared_ptr< avsCommon::avs::attachment::AttachmentReader > attachmentReader, std::chrono::milliseconds offsetAdjustment, const avsCommon::utils::AudioFormat *format=nullptr, const SourceConfig &config=emptySourceConfig())=0 |
|
virtual SourceId | setSource (const std::string &url, std::chrono::milliseconds offset=std::chrono::milliseconds::zero(), const SourceConfig &config=emptySourceConfig(), bool repeat=false, const PlaybackContext &playbackContext=PlaybackContext())=0 |
|
virtual SourceId | setSource (std::shared_ptr< std::istream > stream, bool repeat=false, const SourceConfig &config=emptySourceConfig(), avsCommon::utils::MediaType format=avsCommon::utils::MediaType::UNKNOWN)=0 |
|
virtual bool | play (SourceId id)=0 |
|
virtual bool | stop (SourceId id)=0 |
|
virtual bool | stop (SourceId id, std::chrono::seconds timeToPipelineShutdown) |
|
virtual bool | pause (SourceId id)=0 |
|
virtual bool | resume (SourceId id)=0 |
|
virtual bool | seekTo (SourceId id, std::chrono::milliseconds location, bool fromStart) |
|
virtual std::chrono::milliseconds | getOffset (SourceId id)=0 |
|
virtual uint64_t | getNumBytesBuffered ()=0 |
|
virtual utils::Optional< avsCommon::utils::mediaPlayer::MediaPlayerState > | getMediaPlayerState (SourceId id)=0 |
|
virtual void | addObserver (std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerObserverInterface > playerObserver)=0 |
|
virtual void | removeObserver (std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerObserverInterface > playerObserver)=0 |
|
virtual utils::Optional< PlaybackAttributes > | getPlaybackAttributes () |
|
virtual std::vector< PlaybackReport > | getPlaybackReports () |
|
virtual utils::Optional< Fingerprint > | getFingerprint () |
|
Interface to add virtual functions to MediaPlayerInterface to allow for mocking / EXPECT of polymorphic methods.