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
title: A summary already exists or is being created on this video.
@@ -1650,8 +1649,7 @@ paths:
1650
1649
- Summaries
1651
1650
x-client-action: update
1652
1651
x-client-description:
1653
-
default: Update details for a summary. Note that this operation is only allowed
1654
-
for summary objects where `sourceStatus` is `missing`.
1652
+
default: Update details for a summary.
1655
1653
x-contentType: application/json
1656
1654
x-accepts: application/json
1657
1655
/videos/{videoId}/source:
@@ -16648,6 +16646,10 @@ components:
16648
16646
playerId: pl45KFKdlddgk654dspkze
16649
16647
language: en
16650
16648
transcript: true
16649
+
transcriptSummary: true
16650
+
transcriptSummaryAttributes:
16651
+
- abstract
16652
+
- takeaways
16651
16653
tags:
16652
16654
- maths
16653
16655
- string theory
@@ -16776,6 +16778,16 @@ components:
16776
16778
- The default value is `false`.
16777
16779
- If you define a video language using the `language` parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video.
16778
16780
type: boolean
16781
+
transcriptSummaryAttributes:
16782
+
description: Use this parameter to define the elements of a summary that
16783
+
you want to generate. If you do not define this parameter, the API generates
16784
+
a full summary with all attributes.
16785
+
items:
16786
+
enum:
16787
+
- abstract
16788
+
- takeaways
16789
+
type: string
16790
+
type: array
16779
16791
required:
16780
16792
- title
16781
16793
title: VideoCreationPayload
@@ -16797,15 +16809,21 @@ components:
16797
16809
- auto
16798
16810
example: auto
16799
16811
type: string
16812
+
attributes:
16813
+
description: Use this parameter to define the elements of a summary that
16814
+
you want to generate. If you do not define this parameter, the API generates
16815
+
a full summary with all attributes.
16816
+
items:
16817
+
enum:
16818
+
- abstract
16819
+
- takeaways
16820
+
type: string
16821
+
type: array
16800
16822
required:
16801
16823
- videoId
16802
16824
type: object
16803
16825
summary-update-payload:
16804
16826
properties:
16805
-
title:
16806
-
description: A video title, based on the contents of the video.
16807
-
example: A short lecture on quantum theory
16808
-
type: string
16809
16827
abstract:
16810
16828
description: A short outline of the contents of the video.
16811
16829
example: In this lecture, we discuss how complicated quantum theory is,
@@ -16850,12 +16868,7 @@ components:
16850
16868
abstract: In this lecture, we discuss how complicated quantum theory is, using
16851
16869
the famous example of Schrödingers cat. We also discuss practical applications
16852
16870
like quantum computing.
16853
-
title: A short lecture on quantum theory
16854
16871
properties:
16855
-
title:
16856
-
description: A video title, based on the contents of the video.
16857
-
example: A short lecture on quantum theory
16858
-
type: string
16859
16872
abstract:
16860
16873
description: A short outline of the contents of the video. The length of
16861
16874
an `abstract` depends on the amount of content in a video that can be
@@ -17028,6 +17041,9 @@ components:
17028
17041
language: en
17029
17042
transcript: true
17030
17043
transcriptSummary: true
17044
+
transcriptSummaryAttributes:
17045
+
- abstract
17046
+
- takeaways
17031
17047
panoramic: false
17032
17048
mp4Support: true
17033
17049
tags:
@@ -17140,6 +17156,16 @@ components:
17140
17156
\ video. If you do not define a language, the API detects it based on\
17141
17157
\ the video."
17142
17158
type: boolean
17159
+
transcriptSummaryAttributes:
17160
+
description: Use this parameter to define the elements of a summary that
17161
+
you want to generate. If you do not define this parameter, the API generates
Generate a title, abstract, and key takeaways for a video.
22
+
Generate an abstract and key takeaways for a video.
23
23
24
24
### Example
25
25
```java
@@ -45,6 +45,7 @@ public class Example {
45
45
If you do not set this parameter, **the API will not generate a summary automatically**.
46
46
47
47
Inthiscase, `sourceStatus` will return`missing`, and you have to manually add a summary using the `PATCH/summaries/{summaryId}/source` endpoint operation.
48
+
summaryCreationPayload.setAttributes(); // Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes.
48
49
49
50
50
51
try {
@@ -95,7 +96,7 @@ Name | Type | Description | Notes
95
96
96
97
Update summary details
97
98
98
-
Update details for a summary. Note that this operation is only allowed for summary objects where `sourceStatus` is `missing`.
99
+
Update details for a summary.
99
100
100
101
### Example
101
102
```java
@@ -116,7 +117,6 @@ public class Example {
116
117
117
118
String summaryId ="summary_1CGHWuXjhxmeH4WiZ51234"; // The unique identifier of the summary source you want to update.
summaryUpdatePayload.setTitle("A short lecture on quantum theory"); // A video title, based on the contents of the video.
120
120
summaryUpdatePayload.setAbstract("In this lecture, we discuss how complicated quantum theory is, using the famous example of Schrödingers cat. We also discuss practical applications like quantum computing."); // A short outline of the contents of the video.
121
121
summaryUpdatePayload.setTakeaways(Arrays.asList("Quantum theory is complicated.","Schrödinger's cat is neither dead, nor alive.","Quantum computers are super cool.")); // A list of 3 key points from the video, in chronological order.
**videoId** | **String** | Create a summary of a video using the video ID. |
10
10
**origin** | [**OriginEnum**](#OriginEnum) | Use this parameter to define how the API generates the summary. The only allowed value is `auto`, which means that the API generates a summary automatically. If you do not set this parameter, **the API will not generate a summary automatically**. In this case, `sourceStatus` will return `missing`, and you have to manually add a summary using the `PATCH /summaries/{summaryId}/source` endpoint operation. | [optional]
11
+
**attributes** | [**List<AttributesEnum>**](#List<AttributesEnum>) | Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. | [optional]
**title** | **String** | A video title, based on the contents of the video. | [optional]
10
9
**_abstract** | **String** | A short outline of the contents of the video. The length of an `abstract` depends on the amount of content in a video that can be transcribed. The API condenses the contents into minimum 20, maximum 300 words. | [optional]
11
10
**takeaways** | **List<String>** | A list of 3 key points from the video, in chronological order. | [optional]
Copy file name to clipboardExpand all lines: docs/VideoCreationPayload.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
20
20
**language** | [**LanguageEnum**](#LanguageEnum) | Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. | [optional]
21
21
**transcript** | **Boolean** | Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video. | [optional]
22
22
**transcriptSummary** | **Boolean** | Use this parameter to enable summarization. We recommend using this parameter together with `transcript: true`. - When `true`, the API generates a summary for the video, based on the transcription. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video. | [optional]
23
+
**transcriptSummaryAttributes** | [**List<TranscriptSummaryAttributesEnum>**](#List<TranscriptSummaryAttributesEnum>) | Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. | [optional]
Copy file name to clipboardExpand all lines: docs/VideoUpdatePayload.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
17
17
**language** | [**LanguageEnum**](#LanguageEnum) | Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. | [optional]
18
18
**transcript** | **Boolean** | Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video. | [optional]
19
19
**transcriptSummary** | **Boolean** | Use this parameter to enable summarization. - When `true`, the API generates a summary for the video, based on the transcription. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video. | [optional]
20
+
**transcriptSummaryAttributes** | [**List<TranscriptSummaryAttributesEnum>**](#List<TranscriptSummaryAttributesEnum>) | Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. | [optional]
0 commit comments