Html OGV文件未播放。Mime类型集,选中Curl,试图在服务器上禁用GZIP

Html OGV文件未播放。Mime类型集,选中Curl,试图在服务器上禁用GZIP,html,Html,在过去的两天里,我关注了很多帖子。Firefox不会在上播放OGV文件,但在本地服务器上运行良好。该文件是chmod 777 这在.htaccess文件中: SetEnv no-gzip dont-vary RewriteRule . - [E=no-gzip:0] <FilesMatch "^(?!.*\.ogg$|.*\.ogv$).+" > <IfModule filter_module> FilterDeclare COMPRESS

在过去的两天里,我关注了很多帖子。Firefox不会在上播放OGV文件,但在本地服务器上运行良好。该文件是
chmod 777

这在
.htaccess
文件中:

SetEnv no-gzip dont-vary
RewriteRule . - [E=no-gzip:0]

<FilesMatch "^(?!.*\.ogg$|.*\.ogv$).+" >
    <IfModule filter_module>
        FilterDeclare   COMPRESS
        FilterProvider  COMPRESS  DEFLATE env=notogg true
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type /text/(html|css|javascript|plain|x(ml|-component))/
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type /application/(javascript|json|xml|x-javascript)/
        FilterChain     COMPRESS
        FilterProtocol  COMPRESS  change=yes;byteranges=no
    </IfModule>
</FilesMatch>

AddType audio/ogg .oga .ogg
AddType video/ogg .ogv
AddType application/ogg .ogg
AddType video/webm .webm
AddType video/mp4 .mp4
当我查看页面并获取页面信息时,它显示如下:

Location: http://www.beautiful-soul.co.uk/collections/beautiful_soul_aw11.ogv
Type: video/ogg
Size: 8 KB (8192 bytes)
Dimensions: 0px × 0px
Associated Text: AC_FL_RunContent(...
我不知道为什么

  • 我的
    .htaccess
    文件将被忽略,并且GZIP仍处于启用状态
  • 为什么会找到OGV文件,但只下载字节,并且没有维度

  • 是的,很抱歉回复晚了。我重新安装/更新了firefox。这是通过取出ogg版本解决的

    <video width="720" height="405"  preload controls autoplay >
    
        <source src="beautiful_soul_aw111.mp4" type='video/mp4' />
        <source src="beautiful_soul_aw11.m4v" type='video/mp4' />
        <!--<source src="beautiful_soul_aw11.ogv" type='video/ogg' />-->
        <source src="beautiful_soul_aw11.webm" type='video/webm' />
     </video>
    
    
    
    现在,它在所有浏览器中都能正常运行

    谢谢

    Andi

    似乎已经解决了这个问题(在我的Firefox中,我在
    中只看到了一个
    (ogv),而且玩起来很好)。想把答案贴在下面吗?
    curl -I http://www.beautiful-soul.co.uk/collections/beautiful_soul_aw11.ogv
    HTTP/1.1 200 OK
    Date: Mon, 29 Aug 2011 18:44:03 GMT
    Server: Apache/2
    Last-Modified: Mon, 29 Aug 2011 17:44:49 GMT
    ETag: "36976a8-4aba873976640"
    Accept-Ranges: bytes
    Content-Length: 57243304
    Content-Type: video/ogg
    
    Location: http://www.beautiful-soul.co.uk/collections/beautiful_soul_aw11.ogv
    Type: video/ogg
    Size: 8 KB (8192 bytes)
    Dimensions: 0px × 0px
    Associated Text: AC_FL_RunContent(...
    
    <video width="720" height="405"  preload controls autoplay >
    
        <source src="beautiful_soul_aw111.mp4" type='video/mp4' />
        <source src="beautiful_soul_aw11.m4v" type='video/mp4' />
        <!--<source src="beautiful_soul_aw11.ogv" type='video/ogg' />-->
        <source src="beautiful_soul_aw11.webm" type='video/webm' />
     </video>