开发者

Adding Video in MVc

I am new to MVC I want to know how to add Video in MVC 2.0 using Html5. when I try to add video in Mvc like this

Video src="http://stelllent/Videos/Mvc"

It display error 开发者_如何学PythonVideo tag is not defined.


The first prerequisite is to have a browser which supports the <video> tag (IE 9.0+, FireFox 3.5+, Safari 3.0+, Chrome 3.0+, Opera 10.5+, iPhone 1.0+, Android 2.0+, ...). Then you could use it like this:

<video src="/videos/movie.avi" controls="controls">
    Your browser does not support the video tag
</video>

Or if you have a controller action which is streaming the video you could also point the src attribute to it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜