Videos
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
動画
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 ドライブです。
|
VideoProperties
JSON 表現
|
{
"outline": {
object (Outline )
},
"autoPlay": boolean,
"start": integer,
"end": integer,
"mute": boolean
}
|
フィールド
|
outline
|
object (Outline )
動画の概要。デフォルトのアウトラインは、スライド エディタで作成された新しい動画のデフォルトと一致します。
|
autoPlay
|
boolean
ページがプレゼンテーション モードで表示されるときに動画の自動再生を有効にするかどうかを指定します。デフォルトは false です。
|
start
|
integer
再生を開始する時刻。動画の先頭からの秒数で表します。設定する場合は、開始時間は終了時間より前にする必要があります。この値を動画の長さ(秒単位)を超える値に設定すると、動画は最後の秒から再生されます。未設定の場合、動画は最初から再生されます。
|
end
|
integer
再生を終了する時刻。動画の先頭からの秒数で表します。設定する場合は、終了時間は開始時間より後にする必要があります。未設定の場合、または動画の長さを超える値を設定した場合、動画は最後まで再生されます。
|
mute
|
boolean
動画の再生中に音声をミュートするかどうか。デフォルトは false です。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。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. |"]]