private DeleteAllPreviewsPayload GetDeleteEventPlayload(VideoAssetInOut videoAsset) { var payload = new DeleteAllPreviewsPayload(CommentMode.Timeline); payload.ItemsToErase = videoAsset.PlayByPlayMarkers; return(payload); }
private void AddPlayByPlayMarkersToTimeline(double position, VideoAssetInOut videoAssetInOut) { videoAssetInOut.GenerateTimelinePlayByPlayList(position); foreach (var playByPlay in videoAssetInOut.PlayByPlayFilteredMarkers) { this.eventAggregator.GetEvent <AddPreviewEvent>().Publish(new AddPreviewPayload("PlayByPlay", playByPlay, CommentMode.Timeline)); } }
public VideoAssetInOut Clone() { var clone = new VideoAssetInOut(this.VideoAsset); clone.Duration = this.Duration; clone.FrameRate = this.FrameRate; clone.InPosition = this.InPosition; clone.OutPosition = this.OutPosition; clone.SequenceAudioStreams = this.SequenceAudioStreams; clone.SequenceVideoCamera = this.SequenceVideoCamera; clone.PreviewAudioStream = this.PreviewAudioStream; clone.PreviewVideoCamera = this.PreviewVideoCamera; clone.AddMarkersToSequence = this.AddMarkersToSequence; clone.PlayByPlayMarkers = this.GetPlayByPlayClones(); return(clone); }
private void RemovePlayByPlayMarkers(VideoAssetInOut videoAsset) { var payload = this.GetDeleteEventPlayload(videoAsset); this.eventAggregator.GetEvent <DeleteAllPreviewsEvent>().Publish(payload); }