mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 16:03:22 +01:00
Fixed play-mp3.ps1
This commit is contained in:
parent
8a0489ff5f
commit
d7cba3ffc0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user