从 Sharepoint 2007 提供 HTML 5 视频 (MOSS)
我想要服务器来自 Sharepoint 2007 的 HTLM 5 视频剪辑。这些剪辑的大小相对较小 (<1MByte)。我开发了一个自定义 WebPart,它生成 HTML 5 标记,并且可以配置为使用链接剪辑的 URL 或文档库。
我发现的问题是,当内容存储在文档库中时,浏览器无法处理视频。使用 Firefox 3.6,我得到一个灰色框。如果我将视频文件存储在文件系统中(在 moss 虚拟目录内),则视频显示正常。
使用firebug,我发现当视频存储在文件系统中时,内容类型是正确的(这是我在 IIS 中注册 MIME 类型的类型),并且内容也是分块提供的(我看到很多共 206 条回复)。
当内容存储在文档库中时,Content-Type 设置为 HTML,我只看到 200(OK)响应。
如果可以通过文档库提供此类内容,您有什么想法吗?
提前致谢。
I want to server HTLM 5 video clips from Sharepoint 2007. The clips will be relative small in size (<1MByte). I've developed a Custom WebPart which generates de HTML 5 tags and can be configured to either use a URL to a link clip or either a document library.
The problem I've found is that when the content is stored in a document library the video cannot be processed by the browser. Using Firefox 3.6 I obtain a gray box. If I store the video file in the filesystem (inside moss virtual directory), the video is shown ok.
Using firebug, I've seen that when the video is stored in the filesystem, the Content-Type is correct (It's the one I've stup in IIS registering the MIME type), and also the content is served chunked (I see lots of 206 responses).
When the content is stored in a document library, the Content-Type is set to HTML, and I only see a 200 (OK) Response.
Any ideas if this kind of content can be served via a document library ?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你最好使用文件系统上的文件。当 SharePoint 产品团队发布有关 SharePoint 播客工具包,他们没有将此列为原因,但他们确实决定将视频存储在文件系统而不是文档库上。我认为这是一个很好的指标,可以表明您正在处理的问题的严重程度。
I think you are better off with the files on the filesystem. When the SharePoint Product Team posted about the Podcasting Kit for SharePoint, they didn't list this as a reason, but they did decide to store the videos on the file system instead of a document library. I think that's a pretty good indicator of the level of the problem you are dealing with.