You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/media-services/video-indexer/upload-index-videos.md
+47-22Lines changed: 47 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ manager: femila
9
9
ms.service: media-services
10
10
ms.subservice: video-indexer
11
11
ms.topic: article
12
-
ms.date: 11/29/2019
12
+
ms.date: 12/03/2019
13
13
ms.author: juliako
14
14
---
15
15
@@ -116,12 +116,28 @@ If the `videoUrl` is not specified, the Video Indexer expects you to pass the fi
116
116
117
117
The following C# code snippet demonstrates the usage of all the Video Indexer APIs together.
118
118
119
+
### Instructions for running this code sample
120
+
121
+
After copying this code into your development platform you will need to provide two parameters: API Management authentication key and video URL.
122
+
123
+
* API key – API key is your personal API management subscription key, that will allow you to get an access token in order to perform operations on your Video Indexer account.
124
+
125
+
To get your API key, go through this flow:
126
+
127
+
* Navigate to https://api-portal.videoindexer.ai/
128
+
* Login
129
+
* Go to **Products** -> **Authorization** -> **Authorization subscription**
130
+
* Copy the **Primary key**
131
+
* Video URL – A URL of the video/audio file to be indexed. The URL must point at a media file (HTML pages are not supported). The file can be protected by an access token provided as part of the URI and the endpoint serving the file must be secured with TLS 1.2 or higher. The URL needs to be encoded.
132
+
133
+
The result of successfully running the code sample will include an insight widget URL and a player widget URL that will allow you to examine the insights and video uploaded respectively.
134
+
135
+
119
136
```csharp
120
137
publicasyncTaskSample()
121
138
{
122
139
varapiUrl="https://api.videoindexer.ai";
123
-
varlocation="westus2";
124
-
varapiKey="...";
140
+
varapiKey="..."; // replace with API key taken from https://aka.ms/viapi
0 commit comments