private void M_OnCurrentItemStopped() { if (_currentItem.CGItems != null) { _cgManager.Detach(_currentItem.CGItems); } if (((PlayerToken)_currentItem.PlayerToken).MItem != null) { _mplaylist.PlaylistRemove(((PlayerToken)_currentItem.PlayerToken).MItem); } }
public void Close() { if (_mplaylist != null && this.Status != PreviewPlayerStatus.Closed) { if (_mitem != null) { _mplaylist.FilePlayStop(0.0); _mplaylist.PlaylistRemove(_mitem); Marshal.ReleaseComObject(_mitem); _mitem = null; } _mplaylist.ObjectClose(); this.Duration = 0.0; this.Name = null; this.Status = PreviewPlayerStatus.Closed; OnClosed(); } }