问题标签 [azure-media-player]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
156 浏览

openssl - Azure 媒体服务 - FairPlay 配置显示 - 证书验证失败

我已经为 Widevine 和 Playready 设置了 DRM。它运行良好。
现在我还想启用 FairPlay。但是,当我尝试将应用证书添加到 Azure 媒体服务的内容保护刀片中的 FairPlay 配置时,它不接受我的证书。它显示 -证书验证失败!

我已正确遵循文档中提到的所有步骤:
Apple FairPlay 许可证要求和配置
https://docs.microsoft.com/en-us/azure/media-services/latest/fairplay-license-overview

以下是我遵循的步骤:
1)生成密钥对

2) 产生企业社会责任

3) 从 Apple 获得证书和 ASK。

4) 将 .cer 文件(DER 证书)转换为 .pem 文件(x509 证书)。

5) 将 .pem 文件 (FairPlay-out.pem) 转换为 .pfx 文件(将在 Azure 媒体服务中使用)。为此,我们需要私钥(为 CSR 生成)和 privatekey-pem-pass.txt(包含私钥密码的文本文件)。

在此之后,我尝试在 Azure 中上传 PFX 文件,但它显示 -证书验证失败!

任何人都可以看看一次并帮助我了解我在这里缺少什么。
先感谢您!

0 投票
1 回答
92 浏览

azure - 为什么要对上传到 Azure 媒体服务的视频进行编码?

我在手机上录制了一段视频,我完全不明白为什么需要对其进行编码。格式不保留吗?也许我错过了这里的编码点。录制完成后,它是否还不是用户可以查看的格式?

0 投票
2 回答
92 浏览

cordova - Cordova 应用程序无法打开 azure 媒体播放器视频

我有一个在 VueJS 中使用 Quasar 框架制作的应用程序,该应用程序具有打开 Azure 媒体播放器视频的标签。它在浏览器中完美运行,但是在使用 cordova for android 编译时,它不会在 apk 中播放视频,显然它不会加载 JavaScript:

这是我用来加载视频的方法:

如您所见,我发出警报以了解它在什么时候进入但没有加载功能 window.amp 我希望有人找到了解决方案!

问候

0 投票
1 回答
256 浏览

javascript - Is it possible to select a quality for the azure media player using its javascript API?

Looking to implement azure media player for a project. But we need to use our existing custom video controls. Is it possible to control the quality selector by javascript? Have not been able to find anything concerning this in the documentation..

Does anyone have experience with this?

Any help would be appreciated!

Could also be worth noting that this is a react.js project.

Thanks,

0 投票
1 回答
411 浏览

azure - Azure 媒体服务将多个视频与一个音频流合并

我尝试使用 Azure 媒体服务构建一些复杂的解决方案。我们有大约 1000 多个小视频文件,我们将使用自动化作业将所有这些断言推送到 AMS,并生成大约 10 个视频文件,这些文件将 1000 个视频中的 5 个与相同的背景音轨相结合。

所有视频都具有相同的帧速率/分辨率。

基于前 5 个视频的参与度(由预先上传的 1000 个小视频中的 5 个随机断言组合生成的视频),我们希望根据前 5 个视频的数据再构建 5 个视频(从 1000 个视频中)。

我的问题是,AMS 上是否有办法说我想将视频断言 10、24、345、587 和 879 与标准音轨合并并生成新断言?

我一直在查看https://docs.microsoft.com/en-us/azure/media-services/previous/media-services-advanced-encoding-with-mes#concatenate但确实得到了我需要的答案。

我不确定我是否提供了解决方案所需的完整信息,但如果需要,我很乐意添加更多信息。

提前致谢

0 投票
1 回答
436 浏览

azure - Azure Media Services - allow streaming to specific domain

How can I secure the on-demand streaming from Azure Media Services to a specific domain only?

E.g. if you are using the Azure Media Player on www.domain1.com - you can watch the videos, but if you are on www.whatever.com then the video should not play.

Here is what I tried:

  1. Setting CORS on the assigned Azure Storage account - didn't help. All responses seem to have a * cors header.

  2. Setting up IP restrictions on the Streaming Endpoint - didn't help. I could still stream a video from different machines using the azure media player demo page. https://ampdemo.azureedge.net/azuremediaplayer.html?url=my_url_to_ism_manifest

UPDATE on the IP restrictions - it seems it needs some time to take effect. But now I realize it is not a good option, because there is no way to know the IP addresses of all the users of my site.

As far as I understood, the other content protection mechanisms (like fairPlay, widivine, etc.) that AMS support, require having a token, meaning the users should authenticate to my site first.

But I do not want to authenticate the users on my site, I just want the videos to be playable only if you are on my site.

0 投票
0 回答
127 浏览

azure-media-services - 是否可以提供一个将 m3u8 文件返回到 azure 媒体播放器的 URL?

我正在使用 azure 媒体播放器在我的网站上播放 AES 加密视频。但是,我不想使用返回的默认 HLS 流 uri。

我正在做的是从 HLS 端点加载 m3u8 并直接向其添加字幕(因为我找不到通过媒体服务本身添加字幕的方法,如果有的话,我会全神贯注)。所以网址看起来像这样:https ://website.com/getvideo/100000

这个 url 返回一个有效的 m3u8 文件,我可以让它在其他播放器中播放(未加密)。

我的问题是:有没有办法让 azure 媒体播放器将此 url 识别为 m3u8 文件的有效返回?目前它甚至没有试图达到我的端点,我怀疑这是因为它正在寻找 url 中的东西。

如果您需要更多信息,请与我们联系。

0 投票
1 回答
161 浏览

azure - Azure 媒体服务。如何从网络浏览器流式传输

我是视频流的新手,并试图实现简单的应用程序来从网络浏览器流式传输视频。

我决定为此目的使用 Azure 媒体服务,并在他们身边找到了很多教程,如何使用 OBS、wirecast 等桌面编码器流式传输到 Chanel ......

我想要实现的是使用网络摄像头从网络浏览器流式传输视频。我正在尝试查找 Azure 媒体服务是否有一些解决方案,或者一切都必须从头开始实施。

提前致谢

0 投票
0 回答
173 浏览

javascript - 暂停/停止 Microsoft 在模型关闭时将视频流嵌入 html 页面

我在 html 页面弹出模式中嵌入了 Microsoft 流视频 iframe。当单击按钮并使用默认控件播放时,视频会显示在模态弹出窗口中。当我关闭模态弹出窗口时,视频仍然在后台运行。当模式弹出窗口关闭时,我需要停止/暂停视频。我尝试过使用 JavaScript 视频暂停脚本,但没有任何效果。Streams 与 Azure 播放器一起运行,任何使用 JavaScript 控制视频的建议

0 投票
3 回答
790 浏览

azure-media-services - Azure 媒体播放器源清单

我们是非常小的初中私人导师,他们设置了一个在线门户,学生可以登录并观看每日的视频讲座。我们有许多视频上传到 Azure 媒体服务,但我们意识到编码成本很高且无法承受。因此,我使用 FFMPEG 对视频进行了编码,并在本地使用 MPBox 生成了 m4s 和音频文件以及 .mpd(元数据)。我已经复制了 Azure blob 存储上的所有文件,并且 blob 存储具有 HTTPS 访问权限。我可以使用 .mpd 作为 Azure 媒体播放器的源 url 吗?例如 Azure 媒体播放器源是 //amssamples.streaming.mediaservices.windows.net/3b970ae0-39d5-44bd-b3a3-3136143d6435/AzureMediaServicesPromo.ism/manifest

但我从 MPDBox 生成的元数据是 https://bb.sourceoftraining.companywebinternet.storage/ssj-ewrrer-2343s-ssssdf23/process_and_benifits.mpd

或者我可以使用的任何其他播放器。我尝试了 Shaka 播放器,但无法显示分辨率和播放速度设置。