在网站上播放电影/DVD [英] Playing a movie/DVD on a website

查看:33
本文介绍了在网站上播放电影/DVD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在网站上播放电影(使用handbreak从DVD翻录成mp4格式,然后使用Miro转换为webm) - 它在Firefox和Chrome中运行良好,但IE6/IE7只显示黑色屏幕.

I'm trying to play a movie (ripped from a DVD using handbreak to mp4 format, then using Miro to convert to webm) on a website - it works fine in Firefox and Chrome, but IE6/IE7 just displays a black screen.

我正在使用 videojs 但 Flash 回退没有激活,我相信这是因为它试图查看我现在在本地托管的外部 .swf 文件(在 https 上),但我仍然无法运行视频:

I'm using videojs but the Flash fallback was not activating, I believe this is because it was trying to view the external .swf file which I've now hosted locally (it's on https) but I still cannot get the video to run:

https://secure.photofileltd.co.uk/new_site/index.php?page=video

非常感谢您的任何建议,不幸的是,他们表示不希望在 YouTube 或 Vimeo 上托管视频...

Any suggestions would be much appreciated, unfortunately they have said they don't want the video hosted on YouTube or Vimeo...

谢谢!

(编辑)刚刚测试过,它也不能在 IE8/9 中工作,呸...

(edit) just tested and it won't work in IE8/9 either, bah...

推荐答案

一些注意事项: 1) 如果您停用 Flash,您将在 IE6-8 中看不到任何内容,因为它们不支持 HMTL5 2) 您是否将类型添加到你的源标签?(底部的 ceck 示例) 3)我下载了您的 mp4 并直接在 IE9 中播放,效果很好.这意味着您的服务器配置可能有问题.蒂普天然橡胶1 通过 .htaccess 文件将 MIME-Types 添加到您的服务器

few notes: 1) if you deactive flash, you won t see anything in IE6-8 since they don t support HMTL5 2) did you add the type to your source tag? (ceck example at the bottom) 3) i downloaded your mp4 and played it directly in IE9 which works fine. this means it might be a problem with your server configuration. tipp nr. 1 add MIME-Types via .htaccess file to your server

//.htaccess 
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/mp4 .mov
AddType video/webm .webm

如果这不起作用,请在没有 video-js 的情况下尝试以确保错误不会发生在 video-js 框架中(例如错误/错误的编解码器)

if this doesn t work, try it without video-js just to make sure the mistake doesn t occure within the video-js frameworks (f.e. wrong/bad codec)

<video poster="movie.jpg" controls>
  <source src='movie.webm' type='video/webm'/>
  <source src='movie.ogv' type='video/ogg'/>
  <source src='movie.mp4' type='video/mp4'/>
  <p>Your browser doesn t support html5.</p>
</video>

这篇关于在网站上播放电影/DVD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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