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

查看:113
本文介绍了<视频> 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).

想法?

推荐答案

什么是MIME类型是Sharepoint提供视频吗?它应该是 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.

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

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