仅使用 REST API,我就可以将文件从本地计算机上传到 Azure 媒体服务并启动编码作业。然后我需要轮询作业的状态以查看它何时完成。但是,我真正想要的是 Azure 媒体服务在完成后向我的回调 URL 发送请求。有办法做到这一点吗?
查看我们支持 WebHooks 的通知功能。
https://learn.microsoft.com/en-us/azure/media-services/media-services-dotnet-check-job-progress-with-webhooks https://learn.microsoft.com/en-us/azure/media-services/media-services-dotnet-check-job-progress-with-webhooks
它也与 Azure Functions 集成良好 - 如果您想在 Azure Functions 中托管回调并仅利用其中的 WebHook 触发器。
我们在这里有一些这样做的例子:https://github.com/Azure-Samples/media-services-dotnet-functions-integration/tree/master/101-notify-webhooks https://github.com/Azure-Samples/media-services-dotnet-functions-integration/tree/master/101-notify-webhooks
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)