[M120 Migration][MM] Handle live stream duration and currenttime
[platform/framework/web/chromium-efl.git] / tizen_src / chromium_impl / media / filters / media_player_bridge_capi.cc
index 837352d..fe43bc2 100644 (file)
@@ -626,7 +626,7 @@ base::TimeDelta MediaPlayerBridgeCapi::GetCurrentTime() {
   if (is_end_reached_) {
     if (playback_rate_ < 0)
       return base::TimeDelta();
-    if (duration_.InSecondsF())
+    if (!is_live_stream_ && duration_.InSecondsF())
       return duration_;
   }
 
@@ -654,6 +654,11 @@ void MediaPlayerBridgeCapi::StopCurrentTimeUpdateTimer() {
 }
 
 void MediaPlayerBridgeCapi::OnBufferingUpdateTimerFired() {
+  /* player_get_streaming_download_progress is not apply for live stream
+     here no need triggered*/
+  if (is_live_stream_)
+    return;
+
   int start = 0, current = 0;
   if (player_get_streaming_download_progress(player_, &start, &current) ==
       PLAYER_ERROR_NONE) {