HTML5 多媒体重定向

HTML5 多媒体重定向扩展了 HDX™ MediaStream 的多媒体重定向功能,以包含 HTML5 音频和视频。由于多媒体内容在线分发的增长,特别是向移动设备分发,浏览器行业已经开发出更高效的方式来呈现音频和视频。

Flash 曾是标准,但它需要插件,并非在所有设备上都可用,并且在移动设备上电池使用量更高。YouTube、Netflix 以及 Mozilla、Google 和 Microsoft 的新版浏览器等公司正在转向 HTML5,使其成为新标准。

基于 HTML5 的多媒体相对于专有插件具有许多优势,包括:

  • 独立于公司的标准 (W3C)
  • 简化的数字版权管理 (DRM) 工作流
  • 更好的性能,且没有插件带来的安全问题

HTTP 渐进式下载

HTTP 渐进式下载是一种支持 HTML5 的基于 HTTP 的伪流式传输方法。在渐进式下载中,浏览器在从 HTTP Web 服务器下载单个文件(以单一质量编码)时播放该文件。视频在接收时存储在驱动器上,并从驱动器播放。如果您重新观看视频,浏览器可以从缓存中加载视频。

有关渐进式下载的示例,请参阅 HTML5 视频重定向测试页面。要检查网页中的视频元素并在 HTML5 视频标签中查找源(mp4 容器格式),请使用浏览器中的开发人员工具:

HTML5 与 Flash 之间的功能比较

功能 HTML5 Flash
需要专有播放器
在移动设备上运行 部分
在不同平台上的运行速度
iOS 支持
资源使用
加载更快

必备条件

我们仅支持 mp4 格式的渐进式下载重定向。我们不支持 WebM 和 DASH/HLS 等自适应比特率流技术。

我们支持以下功能,并使用策略来控制它们。有关详细信息,请参阅 多媒体策略设置

  • 服务器端渲染
  • 服务器提取客户端渲染
  • 客户端侧获取和呈现

思杰工作区™ 应用程序和思杰接收器™ 的最低版本:

  • 适用于 Windows 的思杰工作区应用程序 1808
  • 思杰接收器 适用于 Windows 4.5
  • 适用于 Linux 的 思杰 Workspace 应用程序 1808
  • Citrix Receiver for Linux 13.5
Minimum VDA browser version Windows OS version/build/SP
Internet Explorer 11.0 Windows 10 x86 (1607 RS1) and x64 (1607 RS1); Windows 7 x86 and x64; Windows Server 2016 RTM 14393 (1607); Windows Server 2012 R2
Firefox 47 Manually add the certificates to the Firefox certificate store or configure Firefox to search for certificates from a Windows trusted certificate store. For more information, see https://wiki.mozilla.org/CA:AddRootToFirefox Windows 10 x86 (1607 RS1) and x64 (1607 RS1); Windows 7 x86 and x64; Windows Server 2016 RTM 14393 (1607); Windows Server 2012 R2
Chrome 51 Windows 10 x86 (1607 RS1) and x64 (1607 RS1); Windows 7 x86 and x64; Windows Server 2016 RTM 14393 (1607); Windows Server 2012 R2

HTML5 视频重定向解决方案的组件

  • HdxVideo.js - JavaScript hook-intercepting video commands on the website. HdxVideo.js communicates with WebSocketService using Secure WebSockets (SSL/TLS).
  • WebSocket SSL Certificates
    • For the CA (root): Citrix XenApp/XenDesktop HDX In-Product CA (C = US; S = Florida; L = Fort Lauderdale; O = Citrix Systems, Inc.; OU = XenApp and XenDesktop Engineering; CN = Citrix XenApp and XenDesktop HDX In-Product CA) Location: Certificates (Local Computer) > Trusted Root Certification Authorities > Certificates.
    • For the end-entity (leaf): Citrix XenApp/XenDesktop HDX Service (C = US; S = Florida; L = Fort Lauderdale; O = Citrix Systems, Inc.; OU = XenApp and XenDesktop Engineering; CN = Citrix XenApp and XenDesktop HDX Service) Location: Certificates (Local Computer) > Personal > Certificates.
  • WebSocketService.exe - 在本地系统上运行,执行 SSL 终止和用户会话映射。TLS 安全 WebSocket 侦听 127.0.0.1 端口 9001。
  • WebSocketAgent.exe - Runs on the user session and renders the video as instructed from WebSocketService commands.

如何启用 HTML5 视频重定向

在此版本中,此功能仅适用于受控网页。它需要将 HdxVideo.js JavaScript(包含在 Citrix Virtual Apps and Desktops 安装介质中)添加到提供 HTML5 多媒体内容的网页。例如,内部培训网站上的视频。

Websites like youtube.com, which are based on Adaptive Bitrate technologies (for example, HTTP Live Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH)), are not supported.

有关详细信息,请参阅 多媒体策略设置

故障排除提示

当网页尝试运行 HdxVideo.js 时,可能会发生错误。如果 JavaScript 加载失败,HTML5 重定向机制也会失败。通过检查浏览器开发人员工具窗口中的控制台,确保没有与 HdxVideo.js 相关的错误。例如:

重定向图像

HTML5 多媒体重定向