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/regions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Video Indexer APIs contain a **location** parameter that you should set to the A
18
18
19
19
## Locations
20
20
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):
Copy file name to clipboardExpand all lines: articles/media-services/video-indexer/video-indexer-embed-widgets.md
+18-11Lines changed: 18 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ ms.author: juliako
16
16
17
17
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*.
18
18
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`.
20
20
21
21
## Widget types
22
22
@@ -31,6 +31,7 @@ A Cognitive Insights widget includes all visual insights that were extracted fro
31
31
|`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`|
32
32
|`locale`| A short language code | Controls the language of the UI. The default value is `en`. <br/>Example: `locale=de`.|
33
33
|`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.|
34
35
35
36
### Player widget
36
37
@@ -44,6 +45,7 @@ You can use the Player widget to stream video by using adaptive bit rate. The Pl
44
45
|`type`|| Activates an audio player skin (the video part is removed).<br/> Example: `type=audio`. |
45
46
|`autoplay`| A Boolean value | Indicates if the player should start playing the video when loaded. The default value is `true`.<br/> Example: `autoplay=false`. |
46
47
|`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.|
47
49
48
50
### Editor widget
49
51
@@ -54,24 +56,29 @@ You can use the Editor widget to create new projects and manage a video's insigh
54
56
|`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. |
55
57
|`language`| A language code | Controls the player language. The default value is `en-US`.<br/>Example: `language=de-DE`. |
56
58
|`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.|
57
60
58
61
<sup>*</sup>The owner should provide `accessToken` with caution.
59
62
60
-
## Embedding public content
63
+
## Embedding videos
61
64
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.
65
71
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 **</> Embed**.
68
78
5. Copy the embed code (appears in **Copy the embedded code** in the **Share & Embed** dialog).
69
79
6. Add the code to your app.
70
80
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
75
82
76
83
To embed a private video, you must pass an access token in the `src` attribute of the iframe:
0 commit comments