// you entered into with Samsung.
using NUnit.Framework;
+using System;
using System.Linq;
+using System.Threading;
using System.Threading.Tasks;
namespace Tizen.Multimedia.Tests
}
}
}
+
+ [Test]
+ [Category("P1")]
+ [Description("Check whether IsDeltaFrame returns expected value or not.")]
+ [Property("SPEC", "Tizen.Multimedia.EncodedPlane.IsDeltaFrame A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void IsDeltaFrame_PROPERTY_READ_ONLY()
+ {
+ var countDownEvent = new CountdownEvent(1);
+
+ EventHandler<PreviewEventArgs> previewEventHandler = (s, o) => {
+ if ((o.Preview.Plane as EncodedPlane).IsDeltaFrame == true)
+ {
+ countDownEvent.Signal();
+ }
+ };
+
+ TestCamera.Preview += previewEventHandler;
+
+ try
+ {
+ TestCamera.Settings.EncodedPreviewGopInterval = 6;
+ TestCamera.StartPreview();
+
+ Assert.True(countDownEvent.Wait(3000));
+ }
+ finally
+ {
+ TestCamera.Preview -= previewEventHandler;
+ }
+ }
}
}