要了解 Azure 媒体服务,我正在关注教程:使用媒体服务 v3 上传、编码和流式传输视频。但目前卡在本文中给出的代码UploadEncodeAndStreamFilesRetry failed after 6 tries. (The operation was canceled.)在文件上传期间抛出异常await blob.UploadAsync(fileToUpload);。
private static async Task<Asset> CreateInputAssetAsync(
IAzureMediaServicesClient client,
string resourceGroupName,
string accountName,
string assetName,
string fileToUpload)
{
// In this example, we are assuming that the asset name is unique.
//
// If you already have an asset with the desired name, use the Assets.Get method
// to get the existing asset. In Media Services v3, the Get method on …Run Code Online (Sandbox Code Playgroud)