Videos
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Видео
Вид PageElement
, представляющий видео.
JSON-представление |
---|
{
"url": string,
"source": enum (Source ),
"id": string,
"videoProperties": {
object (VideoProperties )
}
} |
Поля |
---|
url | string URL-адрес видео. URL-адрес действителен, пока существует исходное видео и не изменяются настройки общего доступа. |
source | enum ( Source ) Источник видео. |
id | string Уникальный идентификатор источника видео для этого видео. |
videoProperties | object ( VideoProperties ) Свойства видео. |
Источник
Перечисления |
---|
SOURCE_UNSPECIFIED | Источник видео не указан. |
YOUTUBE | Источник видео — YouTube. |
DRIVE | Источник видео — Google Drive. |
Свойства видео
JSON-представление |
---|
{
"outline": {
object (Outline )
},
"autoPlay": boolean,
"start": integer,
"end": integer,
"mute": boolean
} |
Поля |
---|
outline | object ( Outline ) Конспект видео. Структура по умолчанию соответствует настройкам по умолчанию для новых видео, созданных в редакторе слайдов. |
autoPlay | boolean Включить ли автозапуск видео, когда страница отображается в текущем режиме. По умолчанию ложь. |
start | integer Время начала воспроизведения, измеряется в секундах от начала видео. Если установлено, время начала должно быть раньше времени окончания. Если вы установите значение, превышающее продолжительность видео в секундах, видео будет воспроизводиться с последней секунды. Если не установлено, видео будет воспроизводиться с начала. |
end | integer Время окончания воспроизведения, измеряется в секундах от начала видео. Если установлено, время окончания должно быть позже времени начала. Если этот параметр не установлен или вы установили значение, превышающее длину видео, видео будет воспроизводиться до конца. |
mute | boolean Отключить ли звук во время воспроизведения видео. По умолчанию ложь. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-03-21 UTC.
[null,null,["Последнее обновление: 2025-03-21 UTC."],[],[],null,["# Videos\n\n### Video\n\n\nA\n[PageElement](/workspace/slides/api/reference/rest/v1/presentations.pages#Page.PageElement)\nkind representing a video.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"url\": string, \"source\": enum (/workspace/slides/api/reference/rest/v1/presentations.pages/videos#Page.Source), \"id\": string, \"videoProperties\": { object (/workspace/slides/api/reference/rest/v1/presentations.pages/videos#Page.VideoProperties) } } ``` |\n\n| Fields ||\n|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `url` | `string` An URL to a video. The URL is valid as long as the source video exists and sharing settings do not change. |\n| `source` | `enum (`[Source](/workspace/slides/api/reference/rest/v1/presentations.pages/videos#Page.Source)`)` The video source. |\n| `id` | `string` The video source's unique identifier for this video. |\n| `videoProperties` | `object (`[VideoProperties](/workspace/slides/api/reference/rest/v1/presentations.pages/videos#Page.VideoProperties)`)` The properties of the video. |\n\n### Source\n\n\nThe video sources.\n\n| Enums ||\n|----------------------|-----------------------------------|\n| `SOURCE_UNSPECIFIED` | The video source is unspecified. |\n| `YOUTUBE` | The video source is YouTube. |\n| `DRIVE` | The video source is Google Drive. |\n\n### VideoProperties\n\n\nThe properties of the\n[Video](/workspace/slides/api/reference/rest/v1/presentations.pages/videos#Page.Video).\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"outline\": { object (/workspace/slides/api/reference/rest/v1/presentations.pages/other#Page.Outline) }, \"autoPlay\": boolean, \"start\": integer, \"end\": integer, \"mute\": boolean } ``` |\n\n| Fields ||\n|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `outline` | `object (`[Outline](/workspace/slides/api/reference/rest/v1/presentations.pages/other#Page.Outline)`)` The outline of the video. The default outline matches the defaults for new videos created in the Slides editor. |\n| `autoPlay` | `boolean` Whether to enable video autoplay when the page is displayed in present mode. Defaults to false. |\n| `start` | `integer` The time at which to start playback, measured in seconds from the beginning of the video. If set, the start time should be before the end time. If you set this to a value that exceeds the video's length in seconds, the video will be played from the last second. If not set, the video will be played from the beginning. |\n| `end` | `integer` The time at which to end playback, measured in seconds from the beginning of the video. If set, the end time should be after the start time. If not set or if you set this to a value that exceeds the video's length, the video will be played until its end. |\n| `mute` | `boolean` Whether to mute the audio during video playback. Defaults to false. |"]]