Link to home
Start Free TrialLog in
Avatar of FadeDude
FadeDude

asked on

VB.net embedded resources (embed video and play with media player)

Hi, ok heres the deal....

I want to embedd a video in my vb.net app and then be able to play it.
I got as far as just adding the file (lesson1.mpg) to the project and in its propperties

specifying that it should be treated as an embedded resource.

Now how do I access it so i can play it in a windows media player control?

I've tried numerous ways from searching on google but with no success.

Eventually I want to have something like:

mediaplayer1.file = lesson1.mpg
mediaplayer1.play
ASKER CERTIFIED SOLUTION
Avatar of Vulten
Vulten
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FadeDude
FadeDude

ASKER

Yeah!, I also seemed to have gotten along with the writing of the stream to a tmp file, got that after a LOT of googling... Its funny there there is such limited documentation on this.

I must say tho, I like the end of stream part for the media player control.... that will earn you your points.. thanks.

ciao