예제 #1
0
        private void M_OnCurrentItemStopped()
        {
            if (_currentItem.CGItems != null)
            {
                _cgManager.Detach(_currentItem.CGItems);
            }

            if (((PlayerToken)_currentItem.PlayerToken).MItem != null)
            {
                _mplaylist.PlaylistRemove(((PlayerToken)_currentItem.PlayerToken).MItem);
            }
        }
예제 #2
0
        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();
            }
        }