mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-19 08:28:19 +02:00
Fixed play-mp3.ps1
This commit is contained in:
parent
8a0489ff5f
commit
d7cba3ffc0
@ -25,7 +25,7 @@ try {
|
|||||||
write-output "Playing '$Line' ..."
|
write-output "Playing '$Line' ..."
|
||||||
$FullPath = (get-childItem "$Line").fullname
|
$FullPath = (get-childItem "$Line").fullname
|
||||||
do {
|
do {
|
||||||
$MediaPlayer.open("$Line")
|
$MediaPlayer.open($FullPath)
|
||||||
$Duration = $MediaPlayer.NaturalDuration.TimeSpan.TotalMilliseconds
|
$Duration = $MediaPlayer.NaturalDuration.TimeSpan.TotalMilliseconds
|
||||||
} until ($Duration)
|
} until ($Duration)
|
||||||
$MediaPlayer.Volume = 1
|
$MediaPlayer.Volume = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user