コード例 #1
0
        public MoviePlayerWVX(MediaSource source)
        {
            _mItem = source;

            OMLApplication.DebugLine("[MoviePlayerWVX] Loading for playlist: " + _mItem.MediaPath);
            _wplm = new WVXManager(_mItem.MediaPath);
            _currentItem = 0;
        }
コード例 #2
0
        private string CreatePlayListFromAllDisks()
        {
            if (!Directory.Exists(FileSystemWalker.TempPlayListDirectory))
                FileSystemWalker.createTempPlayListDirectory();

            WVXManager playlist = new WVXManager();

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

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

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

            playlist.WriteWVXFile(playlistFile);

            return playlistFile;
        }