Animations

How do you get vb.net to play gif or avi animations

Page 1 of 1

7 Replies - 2917 Views - Last Post: 28 May 2009 - 04:27 PM Rate Topic: -----

#1 FurryFreak  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 34
  • Joined: 20-May 09

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 :blink:


Is This A Good Question/Topic? 0
  • +

Replies To: Animations

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9383
  • View blog
  • Posts: 35,228
  • Joined: 12-June 08

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
Was This Post Helpful? 1
  • +
  • -

#3 FurryFreak  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 34
  • Joined: 20-May 09

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

Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9383
  • View blog
  • Posts: 35,228
  • Joined: 12-June 08

Re: Animations

Posted 22 May 2009 - 11:30 AM

View PostFurryFreak, 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? :blink:

View PostFurryFreak, 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.

View PostFurryFreak, 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


http://lmgtfy.com/?q=vb.net+mp3+player
Was This Post Helpful? 1
  • +
  • -

#5 Ändrew  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 25
  • View blog
  • Posts: 312
  • Joined: 21-April 08

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.

This post has been edited by Ändrew: 22 May 2009 - 06:53 PM

Was This Post Helpful? 0
  • +
  • -

#6 narmer93  Icon User is offline

  • D.I.C Regular

Reputation: 8
  • View blog
  • Posts: 317
  • Joined: 13-March 08

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
Was This Post Helpful? 1
  • +
  • -

#7 FurryFreak  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 34
  • Joined: 20-May 09

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 :^:

Was This Post Helpful? 0
  • +
  • -

#8 narmer93  Icon User is offline

  • D.I.C Regular

Reputation: 8
  • View blog
  • Posts: 317
  • Joined: 13-March 08

Re: Animations

Posted 28 May 2009 - 04:27 PM

you are welcome man :D
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1