コード例 #1
0
        private DeleteAllPreviewsPayload GetDeleteEventPlayload(VideoAssetInOut videoAsset)
        {
            var payload = new DeleteAllPreviewsPayload(CommentMode.Timeline);

            payload.ItemsToErase = videoAsset.PlayByPlayMarkers;
            return(payload);
        }
コード例 #2
0
 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));
     }
 }
コード例 #3
0
        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);
        }
コード例 #4
0
        private void RemovePlayByPlayMarkers(VideoAssetInOut videoAsset)
        {
            var payload = this.GetDeleteEventPlayload(videoAsset);

            this.eventAggregator.GetEvent <DeleteAllPreviewsEvent>().Publish(payload);
        }