[M120 Migration][MM] Handle live stream duration and currenttime
[platform/framework/web/chromium-efl.git] / tizen_src / chromium_impl / content / browser / media / tizen_renderer_impl.h
index 13af303..5e50009 100644 (file)
@@ -114,6 +114,19 @@ class CONTENT_EXPORT TizenRendererImpl
   void OnVideoSizeChange(const gfx::Size& size) override;
   void OnDurationChange(base::TimeDelta duration) override;
   void OnBufferUpdate(base::TimeDelta time) override;
+
+#if BUILDFLAG(IS_TIZEN_TV)
+  bool PlaybackNotificationEnabled();
+  void NotifyPlaybackState(int state,
+                           int player_id = 0,
+                           const std::string& url = "",
+                           const std::string& mime_type = "",
+                           bool* media_resource_acquired = NULL,
+                           std::string* translated_url = NULL,
+                           std::string* drm_info = NULL) override;
+  void OnLivePlaybackComplete() override;
+#endif
+
 #if defined(TIZEN_TBM_SUPPORT)
   void OnNewTbmFrameAvailable(uint32_t player_id,
                               gfx::TbmBufferHandle tbm_handle,
@@ -128,12 +141,21 @@ class CONTENT_EXPORT TizenRendererImpl
                            uint32_t height) override;
 #endif
 
+#if BUILDFLAG(IS_TIZEN_TV)
+  content::WebContentsDelegate* GetWebContentsDelegate() const override;
+#endif
+
 #if defined(TIZEN_VIDEO_HOLE)
   void SetVideoHole(bool is_video_hole) final;
   void SetMediaGeometry(const gfx::RectF& rect) final;
   gfx::Rect GetViewportRect() const;
 #endif
 
+#if BUILDFLAG(IS_TIZEN_TV)
+  void SetContentMimeType(const std::string& mime_type) override;
+  void SetParentalRatingResult(bool is_pass) override;
+#endif
+
  private:
   const float kDefaultVolume = 1.0;
 
@@ -210,6 +232,14 @@ class CONTENT_EXPORT TizenRendererImpl
   gfx::RectF video_rect_;
 #endif
 
+#if BUILDFLAG(IS_TIZEN_TV)
+  int notify_playback_state_;
+  // Stores the mime type.  Required for URL streams which are DASH
+  // content, so that we can set it to the media_player_ before calling
+  // initialize / prepare.
+  std::string mime_type_;
+#endif
+
   WebContents* web_contents_ = nullptr;
 
   base::WeakPtrFactory<TizenRendererImpl> weak_factory_{this};