I use Windows Media.Playback.MediaPlayer plays a video file, but cannot preview it.
[Windows.Media.Playback.MediaPlayer,Windows.Media.Playback,ContentType=WindowsRuntime]
$a=[Windows.Media.Playback.MediaPlayer]::new()
$a.SetUriSource('https://xxx/index.m3u8')
$a.Play()
How to create a preview control
I don’t think you can purely in Powershell. You would need to embed media player in either a windows form or WPF, or you could just call wmplayer itself
WMP will be removed by Microsoft. This is mp-mediaplayer, which is an UWP API and doesn’t seem to provide a UI
system
Closed
May 20, 2025, 2:55pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.