예제 #1
0
        static void Main(string[] args)
        {
            var t1 = TimeCode.FromMinutes(10.0, SmpteFrameRate.Smpte2997NonDrop);
            var t2 = TimeCode.FromMinutes(10.0, SmpteFrameRate.Smpte30);

            Console.WriteLine("TimeCode: {0}, {1}", t1.ToString(), t2.ToString());
        }
예제 #2
0
        public void ShouldGetTheDurationBasedOnAllTheMediaData()
        {
            var aggregateMediaModel = CreateTestableAggregateMediaModel();
            var timelineElement     = new TimelineElement {
                Asset = new ImageAsset(), Position = TimeCode.FromSeconds(0d, SmpteFrameRate.Smpte30), InPosition = TimeCode.FromMinutes(10, SmpteFrameRate.Smpte30), OutPosition = TimeCode.FromMinutes(30, SmpteFrameRate.Smpte30)
            };

            aggregateMediaModel.AddElement(timelineElement);

            Assert.AreEqual(timelineElement.Duration.TotalSeconds, aggregateMediaModel.Duration.TotalSeconds);
        }