在asp.net上播放视频 [英] Playing videos on asp.net
本文介绍了在asp.net上播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发我的fyp项目,我必须播放将由用户上传的视频。我已将用户上传的视频保存在文件夹中,并将其网址保存在数据库表中。
我用户 HTML5视频播放器但它仍然不播放asp.net中的视频,当我把这个代码放在它播放的简单html文件中但是在asp.net中它不播放视频。如果有人实现了这一点请分享。
I am working on my fyp project on which i have to play vidoes that will be uploaded by the users. i have save the user uploaded videos in a folder and their urls in the database table.
I user HTML5 Video Player but it still does not play videos in asp.net, when i put this code in simple html file it plays but in asp.net it does not play the video. if anyone has implemented this please share.
推荐答案
检查这个
如何在asp.net中播放视频文件 [ ^ ]
您可以查看下面提到的文章。如果您使用的是HTML5,则无需使用任何第三方库来播放视频。
[ ^ ]
请记住将ASP.NET页面的doctype设置如下
<!DOCTYPE html>
谢谢,
You can have a look into the below mentioned article. If you are using HTML5, you don't have to necessarily use any third party libraries to play video.
Beginner's Guide to HTML5 & CSS3 - Getting Fancy with HTML5 & CSS3 (Series 5 of 12)[^]
Remember to put the doctype of your ASP.NET page as below
<!DOCTYPE html>
Thanks,
看到这个。 。:)
网上视频 [ ^ ]
HTML视频 [ ^ ]
在html页面中嵌入视频 [ ^ ]
如何将电影插入HTML文档? [ ^ ]
see this.. :)
Video on the Web[^]
HTML Videos[^]
embed video in html page [^]
How can I insert a movie into an HTML document?[^]
这篇关于在asp.net上播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文