You.i Engine
YiUWPVideoPlayer.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_UWP_VIDEO_PLAYER_H_
3 #define _YI_UWP_VIDEO_PLAYER_H_
4 
6 
12 class CYIUWPVideoPlayerPriv;
13 
15 {
16  friend class CYIUWPVideoPlayerPriv;
17 
18 public:
20  virtual ~CYIUWPVideoPlayer();
21 
22  virtual CYIString GetName_() const override;
23  virtual CYIString GetVersion_() const override;
24  virtual Statistics GetStatistics_() const override;
25  virtual bool SupportsFormat_(StreamingFormat format, DRMScheme drmScheme) const override;
26  virtual std::unique_ptr<CYIVideoSurface> CreateSurface_() override;
27  virtual void Prepare_(const CYIUrl &videoURI, StreamingFormat formatHint) override;
28  virtual void Play_() override;
29  virtual void Pause_() override;
30  virtual void Stop_() override;
31  virtual uint64_t GetDurationMs_() const override;
32  virtual uint64_t GetCurrentTimeMs_() const override;
33  virtual bool HasNativeSeekEventHandling_() const override;
34 
35  virtual std::vector<SeekableRange> GetLiveSeekableRanges_() const override;
36  virtual void Seek_(uint64_t seekPositionMS) override;
37 
38  virtual bool IsMuted_() const override;
39  virtual void Mute_(bool mute) override;
40  virtual bool SelectAudioTrack_(uint32_t id) override;
42  virtual std::vector<CYIAbstractVideoPlayer::AudioTrackInfo> GetAudioTracks_() const override;
43 
44  virtual void DisableClosedCaptions_() override;
45  virtual bool SelectClosedCaptionsTrack_(uint32_t id) override;
46  virtual std::vector<ClosedCaptionsTrackInfo> GetClosedCaptionsTracks_() const override;
48 
49  virtual void SetMaxBitrate_(uint64_t maxBitrate) override;
50  virtual void SetUserAgent_(const CYIString &userAgent) override;
51 
52  virtual TimedMetadataInterface *GetTimedMetadataInterface_() const override;
53 
54 private:
55  virtual bool HasNativeBitrateEventHandling_() const override;
56  virtual bool HasNativeStartTimeHandling_() const override;
57 
58  std::unique_ptr<CYIUWPVideoPlayerPriv> m_pPriv;
59 };
60 
65 #endif
Definition: YiAbstractVideoPlayer.h:203
virtual CYIAbstractVideoPlayer::ClosedCaptionsTrackInfo GetActiveClosedCaptionsTrack_() const override
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
virtual bool IsMuted_() const override
virtual CYIString GetName_() const override
virtual uint64_t GetCurrentTimeMs_() const override
virtual bool SupportsFormat_(StreamingFormat format, DRMScheme drmScheme) const override
virtual void Play_() override
virtual bool SelectClosedCaptionsTrack_(uint32_t id) override
virtual std::vector< SeekableRange > GetLiveSeekableRanges_() const override
virtual CYIString GetVersion_() const override
virtual bool SelectAudioTrack_(uint32_t id) override
virtual void Mute_(bool mute) override
An abstract video player that provides a basic interface that all subclasses must implement...
Definition: YiAbstractVideoPlayer.h:56
virtual void SetMaxBitrate_(uint64_t maxBitrate) override
Definition: YiUWPVideoPlayer.h:14
virtual void Pause_() override
virtual void SetUserAgent_(const CYIString &userAgent) override
friend class CYIUWPVideoPlayerPriv
Definition: YiUWPVideoPlayer.h:16
virtual void Seek_(uint64_t seekPositionMS) override
virtual std::unique_ptr< CYIVideoSurface > CreateSurface_() override
virtual void Stop_() override
virtual std::vector< ClosedCaptionsTrackInfo > GetClosedCaptionsTracks_() const override
virtual bool HasNativeSeekEventHandling_() const override
A class used to encapsulate an URL.
Definition: YiUrl.h:24
virtual Statistics GetStatistics_() const override
Definition: YiAbstractVideoPlayer.h:472
StreamingFormat
Definition: YiAbstractVideoPlayer.h:103
Definition: YiAbstractVideoPlayer.h:574
virtual uint64_t GetDurationMs_() const override
virtual CYIAbstractVideoPlayer::AudioTrackInfo GetActiveAudioTrack_() const override
virtual std::vector< CYIAbstractVideoPlayer::AudioTrackInfo > GetAudioTracks_() const override
virtual ~CYIUWPVideoPlayer()
virtual TimedMetadataInterface * GetTimedMetadataInterface_() const override
DRMScheme
Definition: YiAbstractVideoPlayer.h:116
Definition: YiAbstractVideoPlayer.h:227
virtual void DisableClosedCaptions_() override
virtual void Prepare_(const CYIUrl &videoURI, StreamingFormat formatHint) override