<视频>Sharepoint 2007 中的标签 [英] <video> tag in Sharepoint 2007

查看:34
本文介绍了<视频>Sharepoint 2007 中的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向 Sharepoint 2007 网站添加视频标签,但没有成功.

I am trying to add a video tag to a Sharepoint 2007 website with no success.

我创建了一个新的内容编辑器 webpart 并注入了以下代码:

I created a new Content Editor webpart and injected this code:

http://pastebin.ca/2076724

<video id="movie" width="320" height="240" preload controls>
  <source src="/videos/test.ogv" type='video/ogg; codecs="theora, vorbis"' />

  <object id="MediaPlayer" width="320" height="240" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Windows Media Player components..." type="application/x-oleobject">
  <PARAM NAME="FileName" VALUE="http://www.domain.com/videos/test.wmv">
  <PARAM name="autostart" VALUE="false">
  <PARAM name="ShowControls" VALUE="true">
  <param name="ShowStatusBar" value="false">
  <PARAM name="ShowDisplay" VALUE="false">
  <EMBED TYPE="application/x-mplayer2" SRC="http://www.domain.com/videos/test.wmv" NAME="MediaPlayer"
  WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"></EMBED>
  </OBJECT>
</video>

控件已加载,保存视频时找到视频(因此没有断开的链接),但视频不播放.

The controls are loaded, the video is found when doing Save Video (so no broken link), but the video does not play.

我所做的是将页面另存为我的本地磁盘,tada:它有效.

What I did is do Save Page As to my local disk, and tada: It works.

我多次摆弄代码.我注意到 Sharepoint 确实稍微改变了代码,但相同的代码在本地运行时如此..

I fiddled with the code several times. I noticed that Sharepoint does alter the code a bit but the same code works when locally so..

我的网站中也没有 HTML5 文档类型.(非本地).

I also do not have the HTML5 doctype in my website. (neither locally).

想法?

推荐答案

Sharepoint 为视频提供什么 MIME 类型?它应该是 video/ogg这是一篇关于如何在 IIS6 中配置 MIME 类型的 Technet 文章.

What MIME type is Sharepoint serving the video as? It should be video/ogg, here's a Technet article on how to configure MIME types in IIS6.

这篇关于&amp;lt;视频&amp;gt;Sharepoint 2007 中的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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