I am following the sample code at https://github.com/Azure-Samples/media-services-video-indexer/blob/master/API-Samples/C%23/Classic/sampleCode.cs to get started with Azure AI Video Indexer.
It has the following parameters to be setup in the code:
var apiKey = "API_KEY"; // replace with API key taken from https://aka.ms/viapi
var accountId = "ACCOUNT_ID"; // replace with your VI account id (guid)
var accountLocation = "trial"; // If you have a paid account the location will be different, named after the Azure region the account is in
Not sure which area Azure Video Indexer, I can get the Api Key and Account Id from.
Need some help in getting these information
API Key:
You can get the
API keyfrom using this link https://aka.ms/viapi sign in with yourMicrosoft accountand get the API key.Portal:
Account ID:
You can get the
Account IDusing this https://www.videoindexer.ai/ link.Portal:
Now, using the below code I can able to Upload video into the video indexer.
Code:
Output:
Portal:
In my portal, the video is uploaded successfully.
Reference:
Use the Azure AI Video Indexer API | Microsoft Learn