Skip to content

Commit 641a6ee

Browse files
authored
Merge pull request #111224 from Juliako/patch-23
Update video-indexer-use-apis.md
2 parents 20b40a3 + aaf7021 commit 641a6ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/media-services/video-indexer/video-indexer-use-apis.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: femila
99
ms.service: media-services
1010
ms.subservice: video-indexer
1111
ms.topic: article
12-
ms.date: 02/03/2020
12+
ms.date: 04/13/2020
1313
ms.author: juliako
1414
---
1515

@@ -138,9 +138,9 @@ var videoUrl = "VIDEO_URL"; // replace with the video URL
138138
// as an alternative to specifying video URL, you can upload a file.
139139
// remove the videoUrl parameter from the query string below and add the following lines:
140140
//FileStream video =File.OpenRead(Globals.VIDEOFILE_PATH);
141-
//byte[] buffer =newbyte[video.Length];
141+
//byte[] buffer = new byte[video.Length];
142142
//video.Read(buffer, 0, buffer.Length);
143-
//content.Add(newByteArrayContent(buffer));
143+
//content.Add(new ByteArrayContent(buffer));
144144
145145
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;
146146
var uploadResult = uploadRequestResult.Content.ReadAsStringAsync().Result;
@@ -211,5 +211,5 @@ Debug.WriteLine(playerWidgetLink);
211211
## Next steps
212212

213213
- [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.
215215

0 commit comments

Comments
 (0)