Windows 10 的 HLS 播放器

HLS player for Windows 10

我正在为 Windows10 开发视频播放器。该播放器必须同时再现 HLS 和 AAC 轨道。

我想使用 AdaptiveMediaSource class for the video track as it supports HLS. For the audio track, I was considering to use the AudioStreamingAgent class,但对于这种情况,我不确定它是否是最合适的选择。

除此之外,这两个轨道必须是独立的。我的意思是,虽然它们必须同步,但用户必须能够单独调整它们的音量,甚至将它们静音,但我还没有找到任何控制,甚至不能停止或恢复播放(我认为应该是audio/video 玩家的基本控制)。

我找到了代表音频和视频对象的 MediaElement class,所以使用这个 class 可以解决缺少控件的问题,但我不确定它的功能通过流媒体再现。

我想知道的另一件事是,除了第一个对象之外,Windows 7 到 8.1 是否支持这种对象,它们也会出现在这个版本中吗?

正确的开发方式是什么?

提前致谢!!

Azure 最近还发布了一个媒体播放器。您也可以在您的应用程序中添加此播放器的代码。

Here is a tutorial on how to do that.

几个月前,Microsoft 发布了新的 Azure 媒体服务视频播放器。这是我最大的卖点:

Azure Media Player utilizes industry standards, such as HTML5 (MSE/EME) to provide an enriched adaptive streaming experience. When these standards are not available on a device or in a browser, Azure Media Player automatically uses Flash and Silverlight as fallback technology. Regardless of the playback technology used, developers will have a unified JavaScript interface to access APIs. This allows for content served by Azure Media Services to be played across a wide-range of devices and browsers without any extra effort.

DRM

Microsoft Azure 媒体服务允许使用 DASH、Smooth Streaming 和 HLS 流格式播放内容。 Azure Media Player 会考虑这些不同的格式,并根据 platform/browser 功能自动播放最佳 link。

Microsoft Azure 媒体服务还允许使用 PlayReady 加密或 AES-128 位信封加密对资产进行动态加密。当适当配置有能力的平台时,Azure Media Player 允许解密 PlayReady 和 AES-128 位加密内容。

请注意,Azure 媒体播放器仅支持来自 Azure 媒体服务的媒体流。

最后,我使用两个 MediaElements 实现播放器,方法与 Javier Suarez's blog entry 说明的相同。