C # video playback

I'm looking for an attempt at making a simple slider puzzle game. You have seen the ones, you have an image and you are shuffling the tiles.

However, I want to create one that will play the video. I am trying to determine if it is possible to play a video in C # and display the video on different controls (probably buttons or panels). I noticed the Microsoft.DirectX.AudioVideoPlayback classes but haven't found much documentation there yet.

To throw it in the air, is it possible to do without much difficulty? Are there any helpful (free) libraries that could help me?

+2


source to share


2 answers


Take a look at DirectShowNet , which wraps the DirectShow API, in samples , there is a sample called PlayWnd showing how to play a video file.



+2


source


Depending on how large and how long your video sources are, you can do this very easily by converting your videos to animated GIFs first. The .Net PictureBox control will display and animate the GIF automatically, and you can easily use PictureBoxes for your slices.



One of the benefits of this approach is that (thanks to Mono) your application can run unmodified on Windows, Mac and iPhone (also Linux and a few others).

0


source







All Articles