Fixed play-mp3.ps1

This commit is contained in:
Markus Fleschutz 2021-02-22 18:43:18 +01:00
parent 8a0489ff5f
commit d7cba3ffc0

View File

@ -25,7 +25,7 @@ try {
write-output "Playing '$Line' ..."
$FullPath = (get-childItem "$Line").fullname
do {
$MediaPlayer.open("$Line")
$MediaPlayer.open($FullPath)
$Duration = $MediaPlayer.NaturalDuration.TimeSpan.TotalMilliseconds
} until ($Duration)
$MediaPlayer.Volume = 1