Azure / azure-sdk-for-media-services

Azure SDK for Media Services
65 stars 64 forks source link

AlternateId property on Assets is not saved when creating an output asset #3

Open turanuk opened 11 years ago

turanuk commented 11 years ago

I can successfully set the AlternateId property when creating an output asset, but it is not persisted when I try enumerating the Assets collection off of the mediaContext after the encoding job has completed (it's set to null).

task.OutputAssets.AddNew(friendlyName, AssetCreationOptions.None); task.OutputAssets[0].AlternateId = "foo";

mingfeiy commented 11 years ago

This suppose to work and we are tracking it as a bug.

MariamRazeghi commented 10 years ago

I have the exact same issue setting the value for task input asset. The property is set back to null. Is there any update on bug fix? Is there any alternative solution?

In my code, job is submitted in one console app and it is processed in another one. I need to save and pass an identification value.

Thanks

dani-C commented 7 years ago

Any updates on this issue? I can still reproduce it.

BrianBlum commented 7 years ago

That behavior is by design.

You can work around it. When your encoding job is done, you can get the output asset Id and update the asset with AlternateId using asset APIs.

From: Dani [mailto:notifications@github.com] Sent: Friday, January 20, 2017 4:26 PM To: Azure/azure-sdk-for-media-services azure-sdk-for-media-services@noreply.github.com Cc: Brian Blum brianbl@microsoft.com; Comment comment@noreply.github.com Subject: Re: [Azure/azure-sdk-for-media-services] AlternateId property on Assets is not saved when creating an output asset (#3)

Any updates on this issue? I can still reproduce it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-sdk-for-media-services%2Fissues%2F3%23issuecomment-274214891&data=02%7C01%7Cbrianbl%40microsoft.com%7Ca3c6ea70e8554cb7a93808d441940985%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636205551452638377&sdata=HmC7mcIue3ap37sPgrSs6SDk%2B%2FEzXBMQCBEGJTIiujA%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEH9bMuf-x6-XFA95giV8_rmaEGvHOaUks5rUVCEgaJpZM4AtVuj&data=02%7C01%7Cbrianbl%40microsoft.com%7Ca3c6ea70e8554cb7a93808d441940985%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636205551452638377&sdata=IfKWBnSXvFwrAbcyQtrP5WnwbHFzps3%2B6nnfwdLA66A%3D&reserved=0.