Yes I know I sound like a complete n00b, but I'm not, honestly
AnimationsHow do you get vb.net to play gif or avi animations
Page 1 of 1
7 Replies - 1996 Views - Last Post: 28 May 2009 - 04:27 PM
#1
Animations
Posted 20 May 2009 - 10:36 AM
So I can display a gif as a still image but it only shows the first frame if you use image.fromfile and I couldn't figure out how to use imageanimation or whatever it is. Do I have to use a timer or is there some class that does it? The same with the video - there is my.computer.audio.play, but no video equivalent, so what do I do?
Yes I know I sound like a complete n00b, but I'm not, honestly
Yes I know I sound like a complete n00b, but I'm not, honestly
Replies To: Animations
#2
Re: Animations
Posted 20 May 2009 - 11:08 AM
The picture box out of hte toolbox didn't make the gif animate?
Your video problems:
http://www.codeproje...matePlayer.aspx
Your video problems:
http://www.codeproje...matePlayer.aspx
#3
Re: Animations
Posted 22 May 2009 - 09:03 AM
Thanks but I don't want a video player, I just want to play the video on the screen. And no the picture box only shows the first frame.
Also is there a way to play MP3 files because the Audio class and SoundPlayer only play .wav files.
Thanks
Also is there a way to play MP3 files because the Audio class and SoundPlayer only play .wav files.
Thanks
#4
Re: Animations
Posted 22 May 2009 - 11:30 AM
FurryFreak, on 22 May, 2009 - 10:03 AM, said:
Thanks but I don't want a video player, I just want to play the video on the screen
Dude.. "play the video" is a "video player"! Seriously... wow.
Follow the instructions - drop the windows media player com object into your control.. you can set it up to not show play/back/etc buttons.
Did you even read that tutorial?
FurryFreak, on 22 May, 2009 - 10:03 AM, said:
And no the picture box only shows the first frame.
That's strange - I just grabbed the first animated gif off google images, created a test project, added a picture box to the form, imported the gif as the image for the picture box, and ran it. The image animated.
FurryFreak, on 22 May, 2009 - 10:03 AM, said:
Also is there a way to play MP3 files because the Audio class and SoundPlayer only play .wav files.
Thanks
Thanks
http://lmgtfy.com/?q=vb.net+mp3+player
#5
Re: Animations
Posted 22 May 2009 - 06:51 PM
You can use the DirectX Audio Class that plays just about every format I can think of.
And im pretty sure theres also a DirectX Video Player that will render a video onto the screen for you.
And im pretty sure theres also a DirectX Video Player that will render a video onto the screen for you.
This post has been edited by Ändrew: 22 May 2009 - 06:53 PM
#6
Re: Animations
Posted 28 May 2009 - 02:02 PM
why don't you just add the windows media player control?
right click on the toolbox>choose items>COM tab>mark windows media player
it will be added to the toolbox.
you can use the .url to choose the video file to play and it can play mp3 too.
if it didn't play videos,then the problem is probably with the codec
right click on the toolbox>choose items>COM tab>mark windows media player
it will be added to the toolbox.
you can use the .url to choose the video file to play and it can play mp3 too.
if it didn't play videos,then the problem is probably with the codec
#7
Re: Animations
Posted 28 May 2009 - 03:24 PM
Thank you all for your help! 
I now know how to use the media player control and the gif plays now in the picture box (dont know why it didnt before) so all is good now
I now know how to use the media player control and the gif plays now in the picture box (dont know why it didnt before) so all is good now
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote









|