public override void Add(IPlayerItem playerItem)
        {
            var record = new PlayRecord();

            record.PlayItemId     = playerItem.PlayItem.Id;
            record.PlaybillItemId = playerItem.PlayItem.PlaybillItem.Id;
            record.ScheduleMode   = playerItem.PlayItem.PlaybillItem.ScheduleMode;

            record.SourceId    = playerItem.PlayItem.PlaybillItem.MediaSource.Id;
            record.SourceTitle = playerItem.PlayItem.PlaybillItem.MediaSource.Title;
            var sourceDuration = playerItem.PlayItem.PlaybillItem.MediaSource.Duration;

            if (sourceDuration != null)
            {
                record.SourceDuration = sourceDuration.Value.TotalSeconds;
            }

            record.SourceCategory = playerItem.PlayItem.PlaybillItem.MediaSource.Category;


            record.ActualStartTime = playerItem.StartTime;
            //var loadTime = this.LoadTime;
            record.ActualStopTime = playerItem.StopTime;

            record.PlayItemStartTime  = playerItem.PlayItem.StartTime;
            record.LoadMarkerIn       = playerItem.LoadRange.StartPosition.TotalSeconds;
            record.LoadMarkerDuration = playerItem.LoadRange.Duration.TotalSeconds;

            record.PlayItemMarkerIn = playerItem.PlayItem.PlayRange.StartPosition.TotalSeconds;
            record.PlayItemDuration = playerItem.PlayItem.CalculatedPlayDuration.TotalSeconds;

            PlayoutRepository.AddPlayRecord(record);
        }