Flv + jpg gallery

would it be terribly complicated to make a gallery which contains a combination of flvs and jpgs? the flv would have a player thing which hides if it is a jpg.

so each item in the menu would have a slideshow which is a combo of jpgs and flvs