You.i Engine
YiExoPlayerVideoPlayer.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_EXOPLAYER_VIDEO_PLAYER_H_
3 #define _YI_EXOPLAYER_VIDEO_PLAYER_H_
4 
6 
7 class CYIExoPlayerVideoPlayerPriv;
8 class CYIString;
9 
19 {
21 
22 public:
24  virtual ~CYIExoPlayerVideoPlayer();
25 
31  void SetLivePresentationDelay(uint64_t presentationDelayMs, bool overridesManifest);
32 
33  virtual std::unique_ptr<CYIVideoSurface> CreateSurface_() override;
34  virtual CYIString GetName_() const override;
35  virtual CYIString GetVersion_() const override;
36  virtual Statistics GetStatistics_() const override;
37  virtual bool SupportsFormat_(StreamingFormat format, DRMScheme drmScheme) const override;
38  virtual void Prepare_(const CYIUrl &videoURI, StreamingFormat formatHint) override;
39  virtual void Play_() override;
40  virtual void Pause_() override;
41  virtual std::vector<SeekableRange> GetLiveSeekableRanges_() const override;
42  virtual void Seek_(uint64_t seekPositionMs) override;
43  virtual void Stop_() override;
44  virtual uint64_t GetDurationMs_() const override;
45  virtual uint64_t GetCurrentTimeMs_() const override;
46  virtual bool IsMuted_() const override;
47  virtual void Mute_(bool mute) override;
48  virtual bool SelectAudioTrack_(uint32_t id) override;
49  virtual std::vector<AudioTrackInfo> GetAudioTracks_() const override;
50  virtual AudioTrackInfo GetActiveAudioTrack_() const override;
51  virtual void DisableClosedCaptions_() override;
52  virtual bool SelectClosedCaptionsTrack_(uint32_t id) override;
53  virtual std::vector<ClosedCaptionsTrackInfo> GetClosedCaptionsTracks_() const override;
55  virtual void SetMaxBitrate_(uint64_t maxBitrate) override;
57  virtual HeadphoneJackInterface *GetHeadphoneJackInterface_() const override;
58  virtual BufferingInterface *GetBufferingInterface_() const override;
59  virtual TimedMetadataInterface *GetTimedMetadataInterface_() const override;
61  virtual bool HasNativeStartTimeHandling_() const override;
62  virtual bool HasNativeBitrateEventHandling_() const override;
63  virtual bool HasNativeSeekEventHandling_() const override;
64  virtual void SetUserAgent_(const CYIString &userAgent) override;
65 
66 private:
67  std::unique_ptr<CYIExoPlayerVideoPlayerPriv> m_pPriv;
68 
70 };
71 
76 #endif //ifndef _YI_EXOPLAYER_VIDEO_PLAYER_H_
virtual void Prepare_(const CYIUrl &videoURI, StreamingFormat formatHint) override
virtual std::unique_ptr< CYIVideoSurface > CreateSurface_() override
virtual CYIAbstractVideoPlayer::ClosedCaptionsTrackInfo GetActiveClosedCaptionsTrack_() const override
Definition: YiAbstractVideoPlayer.h:210
virtual bool HasNativeBitrateEventHandling_() const override
Definition: YiAbstractVideoPlayer.h:391
virtual std::vector< SeekableRange > GetLiveSeekableRanges_() const override
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
void SetLivePresentationDelay(uint64_t presentationDelayMs, bool overridesManifest)
virtual void Play_() override
virtual CYIString GetVersion_() const override
virtual BackgroundPlaybackInterface * GetBackgroundPlaybackInterface_() const override
virtual CYIString GetName_() const override
virtual MediaPlaybackControlsInterface * GetMediaPlaybackControlsInterface_() const override
virtual void SetMaxBitrate_(uint64_t maxBitrate) override
virtual Statistics GetStatistics_() const override
Definition: YiAbstractVideoPlayer.h:297
virtual uint64_t GetDurationMs_() const override
virtual void DisableClosedCaptions_() override
virtual TimedMetadataInterface * GetTimedMetadataInterface_() const override
An abstract video player that provides a basic interface that all subclasses must implement...
Definition: YiAbstractVideoPlayer.h:56
virtual void SetUserAgent_(const CYIString &userAgent) override
virtual void Mute_(bool mute) override
virtual std::vector< ClosedCaptionsTrackInfo > GetClosedCaptionsTracks_() const override
virtual bool SupportsFormat_(StreamingFormat format, DRMScheme drmScheme) const override
The ExoPlayer video player object.
Definition: YiExoPlayerVideoPlayer.h:18
friend class CYIExoPlayerVideoPlayerPriv
Definition: YiExoPlayerVideoPlayer.h:20
Definition: YiAbstractVideoPlayer.h:256
virtual void Stop_() override
virtual bool SelectAudioTrack_(uint32_t id) override
A class used to encapsulate an URL.
Definition: YiUrl.h:24
virtual void Pause_() override
Definition: YiAbstractVideoPlayer.h:479
StreamingFormat
Definition: YiAbstractVideoPlayer.h:110
Definition: YiAbstractVideoPlayer.h:581
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
virtual void Seek_(uint64_t seekPositionMs) override
virtual AudioTrackInfo GetActiveAudioTrack_() const override
Definition: YiAbstractVideoPlayer.h:497
virtual std::vector< AudioTrackInfo > GetAudioTracks_() const override
virtual bool IsMuted_() const override
virtual bool SelectClosedCaptionsTrack_(uint32_t id) override
virtual ~CYIExoPlayerVideoPlayer()
virtual HeadphoneJackInterface * GetHeadphoneJackInterface_() const override
DRMScheme
Definition: YiAbstractVideoPlayer.h:123
virtual BufferingInterface * GetBufferingInterface_() const override
virtual uint64_t GetCurrentTimeMs_() const override
virtual bool HasNativeSeekEventHandling_() const override
Definition: YiAbstractVideoPlayer.h:234
virtual bool HasNativeStartTimeHandling_() const override