播放视频在ASP.NET页面 [英] playing video in ASP.NET page

查看:134
本文介绍了播放视频在ASP.NET页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个视频,我需要在我的ASP.NET页面的主页打它,它应该在自定义的小面积每当主页被加载玩。谁能帮我?

I have a video, and I need to play it in my ASP.NET page's home page, it should play in a customized small area whenever that home page gets loaded. Can anyone help me?

推荐答案

如果是 HTML5 将其转换为 OGG,MP4和WebM ,然后将其上传到服务器,然后它会更容易,你可以这样来做:

If it's HTML5 convert it to ogg,mp4,WebM and then upload it to your server then it would be easier and you can do it this way:

<video width="320" height="240" controls="controls">
  <source src="yourmovie.mp4" type="video/mp4" />
  <source src="yourmovie.ogg" type="video/ogg" />
  Your browser does not support the video tag.
</video>

编辑:

其实有吨在网络上的样品。下面是其中的一部分。

Actually there are tons of samples on the web. Here are some of them.

http://www.aspnet-video.com/aspnetvideo_Demonstration-PlayList-$p$psentation.aspx

<一个href=\"http://www.c-sharpcorner.com/UploadFile/scottlysle/CsharpWebVideo04212007133218PM/CsharpWebVideo.aspx\" rel=\"nofollow\">http://www.c-sharpcorner.com/UploadFile/scottlysle/CsharpWebVideo04212007133218PM/CsharpWebVideo.aspx

HTTP://videoplayer.$c$cplex.com/

这篇关于播放视频在ASP.NET页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆