您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

步骤 1 - 了解迁移到媒体服务 API V3 的好处Step 1 - Understand the benefits of migrating to Media Services API V3


迁移步骤 2

建议你立即开始使用 Azure 媒体服务 V3 API 版本 2020-05-01 来获得相关优势,因为新的特性、功能和性能优化仅在当前 V3 API 中可用。We encourage you to start using version 2020-05-01 of the Azure Media Services V3 API now to gain the benefits because new features, functionality, and performance optimizations are only available in the current V3 API.

你可在门户、最新的 SDK、最新的 CLI 和 REST API 中使用正确的版本字符串更改 API 版本。You can change the API version in the portal, latest SDKs, latest CLI, and REST API with the correct version string.

媒体服务 V3 中进行了重大改进。There have been significant improvements to Media Services with V3.

媒体服务 v3 的优势Benefits of Media Services v3

V3 功能V3 feature 好处Benefit
Azure 门户Azure portal
Azure 门户更新Azure portal updates Azure 门户已经过更新,现包含 V3 API 实体管理功能。The Azure portal has been updated to include the management of V3 API entities. 它使客户能够使用门户来启动实时传送视频流、提交 V3 转换作业、管理内容保护策略、流式处理终结点、获取 API 访问权限、管理链接的存储帐户,以及执行监视任务。It allows customers to use the portal to start live streaming, submit V3 transform jobs, manage content protection policies, streaming endpoints, get API access, manage linked storage accounts, and perform monitoring tasks.
帐户和存储Accounts and Storage
Azure 基于角色的访问控制 (RBAC)Azure role-based access control (RBAC) 客户现可定义其自己的角色,还可控制对媒体服务 ARM API 中每个实体的访问。Customers can now define their own roles and control access to each entity in the Media Services ARM API. 这样有助于按 AAD 帐户控制对资源的访问。This helps control access to resources by AAD accounts.
托管标识Managed Identities 借助托管标识,开发人员无需在 Azure AD 中提供 Azure 资源的标识即可管理凭据。Managed identities eliminate the need for developers to manage credentials by providing an identity for the Azure resource in Azure AD. 请在此处查看托管标识的详细信息。See details on managed identities here.
对专用链接的支持Private link support 客户将通过其 VNet 上的 PrivateEndpoint 访问 Key Delivery、LiveEvents 和 StreamingEndpoints 的媒体服务终结点。Customers will access Media Services endpoints for Key Delivery, LiveEvents, and StreamingEndpoints via a PrivateEndpoint on their VNet.
客户管理的密钥或创建自己的密钥 (BYOK) 的支持Customer-manged keys or bring your own key (BYOK) support 客户可使用 Azure Key Vault 中的密钥来加密其媒体服务帐户中的数据。Customers can encrypt the data in their Media Services account using a key in their Azure Key Vault.
一个资产可以有多个流式处理定位符,其中每个定位符都有不同的动态打包和动态加密设置。An Asset can have multiple streaming locators each with different dynamic packaging and dynamic encryption settings. 每个资产上只能使用 100 个流式处理定位符。There's a limit of 100 streaming locators allowed on each asset. 客户可在资产中存储媒体内容的单个副本,而使用不同的流式处理策略或基于目标受众的内容保护策略共享不同的流式处理 URL。Customers can store a single copy of the media content in the asset, but share different streaming URLs with different streaming policies or content protection policies that are based on a targeted audience.
作业处理Job processing
V3 为基于文件的作业处理引入了 转换 的概念。V3 introduces the concept of Transforms for file-based Job processing. 使用转换可以生成可重用的配置、创建 Azure 资源管理器模板,并隔离多个客户或租户之间的处理设置。A Transform can be used to build reusable configurations, to create Azure Resource Manager Templates, and isolate processing settings between multiple customers or tenants.
对于基于文件的作业处理,可使用 HTTP(S) URL 作为输入。For file-based job processing, you can use a HTTP(S) URL as the input. 无需事先在 Azure 中存储内容,也无需创建输入资产。You don't need to have content already stored in Azure, nor do you need to create input Assets.
直播活动Live events
高级 1080p 直播活动Premium 1080p Live Events 通过新的直播活动 SKU,客户可进行云编码,同时获得高达 1080p 输出分辨率。New Live Event SKU allows customers to get cloud encoding with output up to 1080p in resolution.
直播活动支持新的低延迟实时传送视频流。New low latency live streaming support on Live Events. 这样,与未启用此设置时相比,用户可更接近实时地观看直播活动。This allows users to watch live events closer to real time than if they didn't have this setting enabled.
直播活动预览版支持 动态打包 和动态加密。Live Event Preview supports dynamic packaging and dynamic encryption. 这样,用户就可使用内容保护功能(预览版)以及 DASH 和 HLS 打包。This enables content protection on preview and DASH and HLS packaging.
实时输出替换程序Live Outputs replace Programs 与 v2 API 中的节目实体相比,实时输出更易于使用。Live output is simpler to use than the program entity in the v2 APIs.
针对直播活动的 RTMP 引入功能经过改进,现支持更多编码器RTMP ingest for Live Events is improved, with support for more encoders 增加了稳定性,并让你能够灵活使用源编码器。Increases stability and provides source encoder flexibility.
直播活动可全天候进行流式传输Live Events can stream 24x7 你可托管直播活动,让观众观看更长时间。You can host a Live Event and keep your audience engaged for longer periods.
实时运行事件Live transcription on Live Events Live 脚本允许客户在实时事件广播期间实时自动将口头转录为文本。Live transcription allows customers to automatically transcribe spoken language into text in real time during the live event broadcast. 这极大地提高了实时事件的可访问性。This significantly improves accessibility of live events.
直播活动的待机模式Stand-by mode on Live Events 与正在运行的直播活动相比,待机状态下的直播活动成本更低。Live events that are in standby state are less costly than running live events. 这样,客户就可以更低的成本维护一组几秒内即可启动的直播活动,而不是维护一组正在运行的直播活动。This allows customers to maintain a set of live events that are ready to start within seconds at a lower cost than maintaining a set of running live events. 我们将于 2021 年 2 月在大部分区域推出待机直播活动的更低价,于 2021 年 4 月在其余区域提供该价格。Reduced pricing for standby live events will become effective in February 2021 for most regions, with the rest to follow in April 2021.
内容保护Content protection
内容保护 支持多密钥功能。Content protection supports multi-key features. 现在,客户可在其流式处理定位符上使用多个内容加密密钥。Customers can now use multiple content encryption keys on their Streaming locators.
Azure EventGrid 通知的支持Azure EventGrid notification support EventGrid 通知功能更加丰富。EventGrid notifications are more feature rich. 增加了通知的类型,扩大了对在你自己的应用程序中接收通知的 SDK 支持的涵盖范围,还提供更多可充当事件处理程序的现有 Azure 服务。There are more types of notifications, broader SDK support for receiving the notifications in your own application, and more existing Azure services that can act as event handlers.
Azure 门户中的 Azure Monitor 支持和集成Azure Monitor support and integration in the Azure portal 这使客户能够直观查看媒体服务帐户配额的使用情况、流式处理终结点的实时统计信息,以及直播活动的引入和存档统计信息。This allows customers to visualize Media Services account quota usage, real-time statistics of streaming endpoints, and ingest and archive statistics for live events. 客户现可设置警报,并根据实时指标数据执行必要的操作。Customers are now able to set alerts and perform necessary actions based on real-time metric data.

后续步骤Next steps

Step 1

Understand the benefits of migrating to Media Services API V3.

Step 2

Understand the differences between Media Services V2 API and the V3 API.

Step 3

Understand the SDK differences and set up to migrate to the V3 REST API or client SDK.

Step 4

Your application of Media Services V2 may be unique. Therefore, we have provided guidance based on how you may have used media services in the past and the steps for each feature of the service such as: