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/video-indexer-use-apis.md
+4-4Lines changed: 4 additions & 4 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: 02/03/2020
12
+
ms.date: 04/13/2020
13
13
ms.author: juliako
14
14
---
15
15
@@ -138,9 +138,9 @@ var videoUrl = "VIDEO_URL"; // replace with the video URL
138
138
// as an alternative to specifying video URL, you can upload a file.
139
139
// remove the videoUrl parameter from the query string below and add the following lines:
140
140
//FileStream video =File.OpenRead(Globals.VIDEOFILE_PATH);
141
-
//byte[] buffer =newbyte[video.Length];
141
+
//byte[] buffer = new byte[video.Length];
142
142
//video.Read(buffer, 0, buffer.Length);
143
-
//content.Add(newByteArrayContent(buffer));
143
+
//content.Add(new ByteArrayContent(buffer));
144
144
145
145
var uploadRequestResult = client.PostAsync($"{apiUrl}/{location}/Accounts/{accountId}/Videos?accessToken={accountAccessToken}&name=some_name&description=some_description&privacy=private&partition=some_partition&videoUrl={videoUrl}", content).Result;
146
146
var uploadResult = uploadRequestResult.Content.ReadAsStringAsync().Result;
-[Examine details of the output JSON](video-indexer-output-json-v2.md)
214
-
- Check out the [sample code](https://github.com/Azure-Samples/media-services-video-indexer/tree/master/API) that demonstrates important aspect of uploading and indexing a video. Following the code wil give you a good idea of how to use our API for basic functionalities. Make sure to read the inline comments and notice our best practices advices.
214
+
- Check out the [sample code](https://github.com/Azure-Samples/media-services-video-indexer) that demonstrates important aspect of uploading and indexing a video. Following the code wil give you a good idea of how to use our API for basic functionalities. Make sure to read the inline comments and notice our best practices advices.
0 commit comments