如何从本地系统上传和显示视频 [英] How to upload and display video from local system

查看:81
本文介绍了如何从本地系统上传和显示视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Html embed标签显示视频,但无法显示系统目录中的任何视频.请帮忙.

I am using Html embed tag to display video but i am not able to display any video that is located in a directory on a system. Please help.

推荐答案

这取决于您所说的系统".如果这是客户的系统,那么您很不走运.您需要将文件上传到服务器.该链接将详细说明并为您提供解决方案:
http://answers.yahoo.com/question/index?qid=20090504200858AAWjfgL [ ^ ]

如果您要播放Flash视频以外的文件,则该文件不能与<embed></embed>标记一起使用.您可以在此处了解更多信息:
http://www.w3schools.com/html/html_videos.asp [ http://stackoverflow.com/questions/8885701/play-local-hard-drive-video-file-with-html5-video-tag [
It depends on what you mean by the "system". If it is the client''s system, you are out of luck. You need to upload the file to the server. This link will explain more and offer you a solution:
http://answers.yahoo.com/question/index?qid=20090504200858AAWjfgL[^]

If you are talking about playing a file other than a Flash video, that won''t work with the <embed></embed> tag. You can learn more about that here:
http://www.w3schools.com/html/html_videos.asp[^]

If you are trying to locate the file on your server, it is either a pathing issue (wrong path specified) or you are trying to access a file that the web server doesn''t have access to (outside the root).

Finally, if you are fine with not using the <embed></embed> tag, you can use the new HTML5 video tag. Here is a good example (with a browse to file option):
http://stackoverflow.com/questions/8885701/play-local-hard-drive-video-file-with-html5-video-tag[^]


这篇关于如何从本地系统上传和显示视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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