You.i Engine
YiTizenNaClVideoPlayer.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_TIZEN_NACL_VIDEO_PLAYER_H_
3 #define _YI_TIZEN_NACL_VIDEO_PLAYER_H_
4 
6 
12 class CYITizenNaClVideoPlayerPriv;
13 
15 {
17 
18 public:
23  {
25  std::unique_ptr<DRMConfiguration> pDRMConfiguration;
26  };
27 
33  using PlaybackRestoreConfigurationProvider = std::function<PlaybackRestoreConfiguration()>;
34 
36  virtual ~CYITizenNaClVideoPlayer();
37 
45  void SetPlaybackRestoreConfigurationProvider(PlaybackRestoreConfigurationProvider playbackRestoreConfigurationProvider);
46 
47 private:
48  virtual CYIString GetName_() const override;
49  virtual CYIString GetVersion_() const override;
50  virtual CYIAbstractVideoPlayer::Statistics GetStatistics_() const override;
51  virtual std::unique_ptr<CYIVideoSurface> CreateSurface_() override;
52  virtual bool SupportsFormat_(StreamingFormat format, DRMScheme drmScheme) const override;
53  virtual void Prepare_(const CYIUrl &videoURI, CYIAbstractVideoPlayer::StreamingFormat format) override;
54  virtual void Play_() override;
55  virtual void Pause_() override;
56  virtual void Stop_() override;
57  virtual std::vector<SeekableRange> GetLiveSeekableRanges_() const override;
58  virtual void Seek_(uint64_t seekPositionMS) override;
59  virtual uint64_t GetDurationMs_() const override;
60  virtual uint64_t GetCurrentTimeMs_() const override;
61  virtual bool IsMuted_() const override;
62  virtual void Mute_(bool mute) override;
63  virtual bool SelectAudioTrack_(uint32_t id) override;
64  virtual std::vector<AudioTrackInfo> GetAudioTracks_() const override;
65  virtual CYIAbstractVideoPlayer::AudioTrackInfo GetActiveAudioTrack_() const override;
66  virtual void DisableClosedCaptions_() override;
67  virtual bool SelectClosedCaptionsTrack_(uint32_t id) override;
68  virtual std::vector<ClosedCaptionsTrackInfo> GetClosedCaptionsTracks_() const override;
69  virtual CYIAbstractVideoPlayer::ClosedCaptionsTrackInfo GetActiveClosedCaptionsTrack_() const override;
70  virtual void SetMaxBitrate_(uint64_t maxBitrate) override;
71  virtual bool HasNativeBitrateEventHandling_() const override;
72  virtual bool HasNativeStartTimeHandling_() const override;
73  virtual bool HasNativeSeekEventHandling_() const override;
74  virtual CYIAbstractVideoPlayer::TimedMetadataInterface *GetTimedMetadataInterface_() const override;
75  virtual void SetUserAgent_(const CYIString &userAgent) override;
76 
77  std::unique_ptr<CYITizenNaClVideoPlayerPriv> m_pPriv;
78 
80 };
81 
86 #endif
Definition: YiAbstractVideoPlayer.h:210
virtual ~CYITizenNaClVideoPlayer()
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
Definition: YiTizenNaClVideoPlayer.h:14
std::unique_ptr< DRMConfiguration > pDRMConfiguration
Definition: YiTizenNaClVideoPlayer.h:25
An abstract video player that provides a basic interface that all subclasses must implement...
Definition: YiAbstractVideoPlayer.h:56
Definition: YiTizenNaClVideoPlayer.h:22
A class used to encapsulate an URL.
Definition: YiUrl.h:24
std::function< PlaybackRestoreConfiguration()> PlaybackRestoreConfigurationProvider
Definition: YiTizenNaClVideoPlayer.h:33
Definition: YiAbstractVideoPlayer.h:479
StreamingFormat
Definition: YiAbstractVideoPlayer.h:110
Definition: YiAbstractVideoPlayer.h:581
friend class CYITizenNaClVideoPlayerPriv
Definition: YiTizenNaClVideoPlayer.h:16
void SetPlaybackRestoreConfigurationProvider(PlaybackRestoreConfigurationProvider playbackRestoreConfigurationProvider)
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
CYIUrl videoURL
Definition: YiTizenNaClVideoPlayer.h:24
DRMScheme
Definition: YiAbstractVideoPlayer.h:123
Definition: YiAbstractVideoPlayer.h:234