Hi All,
I am curious about creating a video player GUI tool and I would like to know if I can reach my goal with PowerShell Studio.
I need to create 3-5-10 buttons, and each button must play it's corresponding video file.
For example, a form with 3 buttons: Introduction, Dinning Room, Playground.
I will create 3 mp4 files and I would like to use something like $VideoPlayer1.Open("C:\Video\Video1.mp4")
Basically, I would like to have a component like PictureBox but for video.
Any suggestions?
PS: SPS ver 2018
How to play a video file on the form?
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: How to play a video file on the form?
[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
I'm not familiar with a built in .NET control that does video, but I'm sure you could use a third party library for this.
There is also a COM object for Windows Media player:
https://docs.microsoft.com/en-us/window ... k-solution
I'm not familiar with a built in .NET control that does video, but I'm sure you could use a third party library for this.
There is also a COM object for Windows Media player:
https://docs.microsoft.com/en-us/window ... k-solution
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: How to play a video file on the form?
one way is to host the media control in the WebBrowser control. https://www.mediacollege.com/video/form ... embed.html
The Visual Studio methods in the article require a generated interop that VS does for you.
The Visual Studio methods in the article require a generated interop that VS does for you.