Exemplo n.º 1
0
        public MoviePlayerWPL(MediaSource source)
        {
            _mItem = source;

            OMLApplication.DebugLine("[MoviePlayerWPL] Loading for playlist: " + _mItem.MediaPath);
            _wplm = new WindowsPlayListManager(_mItem.MediaPath);
            _currentItem = 0;
        }
Exemplo n.º 2
0
        private string CreatePlayListFromAllDisks()
        {
            if (!Directory.Exists(FileSystemWalker.TempPlayListDirectory))
                FileSystemWalker.createTempPlayListDirectory();

            WindowsPlayListManager playlist = new WindowsPlayListManager();

            string playlistFile = Path.Combine(FileSystemWalker.TempPlayListDirectory, "AllDisks_" + this.TitleObject.Id + ".WPL");

            foreach (Disk disk in this.TitleObject.Disks)
            {
                if (string.IsNullOrEmpty(disk.Path))
                    continue;

                playlist.AddItem(new PlayListItem(disk.Path));
            }

            playlist.WriteWPLFile(playlistFile);

            return playlistFile;
        }