Skip to content

Commit 0c0fe69

Browse files
authored
Merge pull request #112568 from Juliako/patch-29
Update video-indexer-embed-widgets.md
2 parents 558c63b + 8f4b73d commit 0c0fe69

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

articles/media-services/video-indexer/regions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Video Indexer APIs contain a **location** parameter that you should set to the A
1818

1919
## Locations
2020

21-
The **location** parameter must be given the Azure region code name as its value. If you are using Video Indexer in preview mode, you should put *"trial"* as the value. Otherwise, to get the code name of the Azure region that your account is in and that your call should be routed to, you can run the following line in [Azure CLI](/cli/azure):
21+
The `location` parameter must be given the Azure region code name as its value. If you are using Video Indexer in preview mode, you should put `"trial"` as the value. `trial` is the default value for the `location` parameter. Otherwise, to get the code name of the Azure region that your account is in and that your call should be routed to, you can run the following line in [Azure CLI](/cli/azure):
2222

2323
```azurecli-interactive
2424
az account list-locations

articles/media-services/video-indexer/video-indexer-embed-widgets.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.author: juliako
1616

1717
This article shows how you can embed Video Indexer widgets in your apps. Video Indexer supports embedding three types of widgets into your apps: *Cognitive Insights*, *Player*, and *Editor*.
1818

19-
Starting with version 2, the widget base URL includes the region of the specified account. For example, an account in the West US region generates: `https://wus2.videoindexer.ai/embed/insights/...`.
19+
Starting with version 2, the widget base URL includes the region of the specified account. For example, an account in the West US region generates: `https://www.videoindexer.ai/embed/insights/.../?location=westus2`.
2020

2121
## Widget types
2222

@@ -31,6 +31,7 @@ A Cognitive Insights widget includes all visual insights that were extracted fro
3131
|`language`|A short language code (language name)|Controls insights language.<br/>Example: `https://www.videoindexer.ai/embed/insights/<accountId>/<videoId>/?language=es-es` <br/>or `https://www.videoindexer.ai/embed/insights/<accountId>/<videoId>/?language=spanish`|
3232
|`locale` | A short language code | Controls the language of the UI. The default value is `en`. <br/>Example: `locale=de`.|
3333
|`tab` | The default selected tab | Controls the **Insights** tab that's rendered by default. <br/>Example: `tab=timeline` renders the insights with the **Timeline** tab selected.|
34+
|`location` ||The `location` parameter must be included in the embedded links, see [how to get the name of your region](regions.md). If your account is in preview, the `trial` should be used for the location value. `trial` is the default value for the `location` parameter.|
3435

3536
### Player widget
3637

@@ -44,6 +45,7 @@ You can use the Player widget to stream video by using adaptive bit rate. The Pl
4445
|`type`| | Activates an audio player skin (the video part is removed).<br/> Example: `type=audio`. |
4546
|`autoplay` | A Boolean value | Indicates if the player should start playing the video when loaded. The default value is `true`.<br/> Example: `autoplay=false`. |
4647
|`language`/`locale` | A language code | Controls the player language. The default value is `en-US`.<br/>Example: `language=de-DE`.|
48+
|`location` ||The `location` parameter must be included in the embedded links, see [how to get the name of your region](regions.md). If your account is in preview, the `trial` should be used for the location value. `trial` is the default value for the `location` parameter.|
4749

4850
### Editor widget
4951

@@ -54,24 +56,29 @@ You can use the Editor widget to create new projects and manage a video's insigh
5456
|`accessToken`<sup>*</sup> | String | Provides access to videos that are only in the account that's used to embed the widget.<br> The Editor widget requires the `accessToken` parameter. |
5557
|`language` | A language code | Controls the player language. The default value is `en-US`.<br/>Example: `language=de-DE`. |
5658
|`locale` | A short language code | Controls the insights language. The default value is `en`.<br/>Example: `language=de`. |
59+
|`location` ||The `location` parameter must be included in the embedded links, see [how to get the name of your region](regions.md). If your account is in preview, the `trial` should be used for the location value. `trial` is the default value for the `location` paramete.|
5760

5861
<sup>*</sup>The owner should provide `accessToken` with caution.
5962

60-
## Embedding public content
63+
## Embedding videos
6164

62-
1. Sign in to the [Video Indexer](https://www.videoindexer.ai/) website.
63-
2. Select the video that you want to work with.
64-
3. Select the embed button (**</>**) that appears under the video.
65+
This section discusses embedding the public and private content into apps.
66+
67+
The `location` parameter must be included in the embedded links, see [how to get the name of your region](regions.md). If your account is in preview, the `trial` should be used for the location value. `trial` is the default value for the `location` paramete. For example: `https://www.videoindexer.ai/accounts/00000000-0000-0000-0000-000000000000/videos/b2b2c74b8e/?location=trial`.
68+
69+
> [!IMPORTANT]
70+
> Sharing a link for the **Player** or **Insights** widget will include the access token and grant the read-only permissions to your account.
6571
66-
After you select the **Embed** button, you can select the widget that you want to embed in your app.
67-
4. Select the type of widget that you want (**Cognitive Insights**, **Player**, or **Editor**).
72+
### Public content
73+
74+
1. Sign in to the [Video Indexer](https://www.videoindexer.ai/) website.
75+
1. Select the video that you want to work with and press **Play**.
76+
1. Select the type of widget that you want (**Cognitive Insights**, **Player**, or **Editor**).
77+
1. Click **&lt;/&gt; Embed**.
6878
5. Copy the embed code (appears in **Copy the embedded code** in the **Share & Embed** dialog).
6979
6. Add the code to your app.
7080

71-
> [!NOTE]
72-
> If you have issues sharing your video URLs, add the `location` parameter to the link. The parameter should be set to the [Azure regions in which Video Indexer exists](regions.md). For example: `https://www.videoindexer.ai/accounts/00000000-0000-0000-0000-000000000000/videos/b2b2c74b8e/?location=trial`.
73-
74-
## Embedding private content
81+
### Private content
7582

7683
To embed a private video, you must pass an access token in the `src` attribute of the iframe:
7784

0 commit comments

Comments
 (0)