AxWindowsMediaPlayer1
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
6 posts
Page 1 of 1
Does anyone know how to play a windows media player video on a form, that is coming from the resources of the program??
the video is a .wmv <-- same as .wma i guess
i have a AxWindowsMediaPlayer1 already on form
but what the heck ?!?! i tried everything.
i want to pick it up of the resource not no C drive !
so does anyone know ?
the video is a .wmv <-- same as .wma i guess
i have a AxWindowsMediaPlayer1 already on form
but what the heck ?!?! i tried everything.
i want to pick it up of the resource not no C drive !
so does anyone know ?
it would probly be best to just have the .wmv in the same location as the main program file, and just use this to open the .wmv
Code: Select all
If you where to exstract the video everythime you opened the program...it would take a long time to load depending on how large the video file is.AxWindowMediaPlayer1.URL = Application.StartUpPath & "\myVideo.wmv"
if that is the case, is it possible to extract whats in the resource into a folder in the desktop or something?
then the player will just pick it up by there. ?
then the player will just pick it up by there. ?
Yes you can use this code to save the movie resource to a file:
Code: Select all
Then you can use Scottie's code.Dim MovieData() As Byte
MovieData = My.Resources.Movie ' Change 'Movie' to the resource name
My.Computer.FileSystem.WriteAllBytes(Application.StartUpPath & "\myVideo.wmv", MovieData, False)
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

Thank you MrAksel & Scottie1972 !
I have completed my program thanks to you.
out of curiosity, where does t extract it to?
I have completed my program thanks to you.
out of curiosity, where does t extract it to?
It extracts to the path where the application was started. For example if you ave your .exe file on your desktop, it would save the movie to the desktop
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

6 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023