Change-Id: Id61c2ac1da307347f51f2ad9b2a0430ee64a5fb1
{
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));
}
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";