From 75e716db40080cbf0c4646e54fa9f2e96cb72c32 Mon Sep 17 00:00:00 2001 From: nam Date: Thu, 26 Jul 2018 15:15:13 +0900 Subject: [PATCH] [MediaPlayer][non-ACR] fix to get duration properly Change-Id: Id61c2ac1da307347f51f2ad9b2a0430ee64a5fb1 --- tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSDownloadProgress.cs | 3 ++- tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/support/Constants.cs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSDownloadProgress.cs b/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSDownloadProgress.cs index 62ac8e5..8a35ea3 100755 --- a/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSDownloadProgress.cs +++ b/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSDownloadProgress.cs @@ -52,8 +52,9 @@ namespace Tizen.Multimedia.Tests { var player = await GetPlayingPlayer(StreamingSource); - await player.SetPlayPositionAsync(Constants.StreamingVideoLength / 10, true); + await player.SetPlayPositionAsync(player.StreamInfo.GetDuration() / 10, true); await Task.Delay(100); + Assert.That(Math.Abs(player.GetDownloadProgress().Start - 10), Is.LessThanOrEqualTo(2)); } diff --git a/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/support/Constants.cs b/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/support/Constants.cs index a26094e..095e003 100755 --- a/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/support/Constants.cs +++ b/tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/support/Constants.cs @@ -2,7 +2,6 @@ using Tizen.Multimedia; internal static class Constants { - internal const int StreamingVideoLength = 596000; internal const int AudioLength = 33384; internal const string AudioFilePath = "/opt/usr/home/owner/share/res/test.mp3"; -- 2.7.4