internal void Apply(IPlayableItemEditorFactory playItemEditorFactory)
        {
            //if (_viewModel.ApplyCommand.CanExecute(null))
            //{
            //    _viewModel.ApplyCommand.Execute(null);
            //}

            if (_viewModel.CanApply())
            {
                _viewModel.Apply(playItemEditorFactory);
            }
        }
Example #2
0
 internal void Apply(IPlayableItemEditorFactory playItemEditorFactory)
 {
     this._playableItem.AudioGain = this.AudioGain;
     if (playItemEditorFactory != null)
     {
         using (var editor = playItemEditorFactory.CreateEditor())
         {
             //editor.ChangePlayRange(this._playableItem.PlayItem, this.PlayRange);
             editor.ChangePlayRange(this._playableItem, this.PlayRange);
         }
     }
     else
     {
         this._playableItem.PlayRange = this.PlayRange;
     }
 }
Example #3
0
        public BindablePlayItem(IPlayItem playItem, string resolvedFilePath, IPlayableItemEditorFactory itemEditorFactory)
        {
            _playItem = playItem;

            _resolvedFilePath  = resolvedFilePath;
            _itemEditorFactory = itemEditorFactory;

            if (playItem.MediaSource.Category != MediaSourceCategory.File)
            {
                this.Image = ErrorImage;
            }
            else
            {
                var metadata = ((Entities.MediaFileEntity)((FileMediaSource)_playItem.MediaSource).Entity).Metadata;
                if (metadata != null)
                {
                    this.ImageBytes = metadata.Icon;
                }
            }
        }
Example #4
0
 public PlayItemCollection(IMediaFilePathResolver filePathResolver, IPlayableItemEditorFactory itemEditFactory)
 {
     _filePathResolver = filePathResolver;
     _itemEditFactory  = itemEditFactory;
 }