更改本地公播路徑

This commit is contained in:
jasonchenwork 2025-06-17 09:27:48 +08:00
parent 46b1bc81a2
commit b1ba0ed286

View File

@ -605,7 +605,7 @@ namespace DualScreenDemo
publicPlaylist = new List<SongData>();
// 首先添加 welcome.mpg
string welcomePath = @"C:\video\welcome.mpg";
string welcomePath = @"D:\video\welcome.mpg";
if (File.Exists(welcomePath))
{
publicPlaylist.Add(new SongData(
@ -617,7 +617,7 @@ namespace DualScreenDemo
// 添加 BGM 序列
for (int i = 1; i <= 99; i++)
{
string bgmPath = $@"C:\video\BGM{i:D2}.mpg";
string bgmPath = $@"D:\video\BGM{i:D2}.mpg";
if (File.Exists(bgmPath))
{
publicPlaylist.Add(new SongData(
@ -630,7 +630,7 @@ namespace DualScreenDemo
// 如果公播清單為空,使用原有的歌曲
if (publicPlaylist.Count == 0)
{
string videoDirectory = @"C:\video\";
string videoDirectory = @"D:\video\";
string[] videoFiles = Directory.GetFiles(videoDirectory, "*.mpg");
foreach (var songPath in videoFiles)
{
@ -957,7 +957,7 @@ namespace DualScreenDemo
publicPlaylist = new List<SongData>();
// 添加 welcome.mpg
string welcomePath = @"C:\video\welcome.mpg";
string welcomePath = @"D:\video\welcome.mpg";
if (File.Exists(welcomePath))
{
publicPlaylist.Add(new SongData(
@ -968,7 +968,7 @@ namespace DualScreenDemo
// 添加 BGM 序列
for (int i = 1; i <= 99; i++)
{
string bgmPath = $@"C:\video\BGM{i:D2}.mpg";
string bgmPath = $@"D:\video\BGM{i:D2}.mpg";
if (File.Exists(bgmPath))
{
publicPlaylist.Add(new SongData(