HI Xavier,
Are the two audio tracks in separate source files or the same file?
Are you updating the Mpeg4TrackId for each file that you are setting?
public static async Task<AssetTrack> PublishAudioTrackAndVerify(AzureMediaServicesClient client, string rgName, string accountName, string assetName, string strFileName, string strTrackName)
{
var newTrack = new AssetTrack
{
Track = new AudioTrack
{
Mpeg4TrackId = (Depending on which track indicates description audio track 1 or 2),
FileName = strFileName,
DisplayName = strTrakName,
HlsSettings = new HlsSettings
{
Characteristics = "public.accessibility.describes-video"
},
LanguageCode = "fr"
}
};
var t = await client.Tracks.CreateOrUpdateAsync(rgName, accountName, assetName, strTrackName, newTrack);
var track = t.Track as AudioTrack;
Console.WriteLine($"new audio track with name {track?.DisplayName}, Id: {track?.Mpeg4TrackId} and bitrate {track?.BitRate} published");
return t;
}
For the second issue, I believe that the properties set using AssetAPI are not being reflected accurately. There might be a bug here that I'll have the team follow up on and check on what's going on.