Chris Sainty
Chris Sainty

Reputation: 8521

MVC 3 Video.Flash helper not working

I'm trying to use the Video helper to show a flash video on a site I'm working on but nothing is showing. I tried the MediaPlayer helper and that worked fine, I've loaded up the flash video I'm trying to play in a media player on my machine and it loads and plays. I've gone right back to basics and just entered the path into the helper but still no joy. Here is the code in my view:

<h2>Movies</h2>

@Video.Flash(path: @Url.Content("~/Media/07477279-df26-4a6e-895a-2ead51d90d21.flv"))

When I looked at the HTML generated there is a there but nothing is loading. I'm stumped! Anyone got any ideas?

Upvotes: 0

Views: 848

Answers (1)

Ian Routledge
Ian Routledge

Reputation: 4042

You'd need to use a url of a flash file (.swf) rather than the direct url to an flv, and then the flash file plays the flv.

Upvotes: 1

Related Questions