Videos
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Wideo
PageElement
kind reprezentujący film.
Zapis JSON
|
{
"url": string,
"source": enum (Source ),
"id": string,
"videoProperties": {
object (VideoProperties )
}
}
|
Pola
|
url
|
string
adres URL filmu. Adres URL jest prawidłowy, dopóki istnieje film źródłowy i ustawienia udostępniania nie ulegną zmianie.
|
source
|
enum (Source )
Źródło filmu.
|
id
|
string
Unikalny identyfikator źródła filmu.
|
videoProperties
|
object (VideoProperties )
Właściwości filmu.
|
Źródło
Wartości w polu enum
|
SOURCE_UNSPECIFIED
|
Źródło wideo jest nieokreślone.
|
YOUTUBE
|
Źródłem filmu jest YouTube.
|
DRIVE
|
Źródło filmu to Dysk Google.
|
VideoProperties
Zapis JSON
|
{
"outline": {
object (Outline )
},
"autoPlay": boolean,
"start": integer,
"end": integer,
"mute": boolean
}
|
Pola
|
outline
|
object (Outline )
Zarys filmu. Domyślny kontur jest zgodny z domyślnym konspektem nowych filmów utworzonych w edytorze Prezentacji.
|
autoPlay
|
boolean
Określa, czy film ma być odtwarzany automatycznie, gdy strona jest wyświetlana w trybie prezentowania. Wartość domyślna to fałsz.
|
start
|
integer
Czas rozpoczęcia odtwarzania mierzony w sekundach od początku filmu. Jeśli godzina rozpoczęcia jest ustawiona, musi przypadać przed czasem zakończenia. Jeśli ustawisz wartość przekraczającą długość filmu w sekundach, będzie on odtwarzany od ostatniej sekundy. Jeśli nie zostanie ustawiony, film będzie odtwarzany od początku.
|
end
|
integer
Czas zakończenia odtwarzania mierzony w sekundach od początku filmu. Jeśli jest ustawiony, czas zakończenia powinien być późniejszy niż czas rozpoczęcia. Jeśli zasada nie jest ustawiona lub ustawiona na wartość przekraczającą długość filmu, film będzie odtwarzany do końca.
|
mute
|
boolean
Określa, czy dźwięk ma być wyciszony podczas odtwarzania filmu. Wartość domyślna to fałsz.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-03-21 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]