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 )
คุณสมบัติของวิดีโอ
|
แหล่งที่มา
Enum
|
SOURCE_UNSPECIFIED
|
ไม่ได้ระบุแหล่งที่มาของวิดีโอ
|
YOUTUBE
|
แหล่งที่มาของวิดีโอคือ YouTube
|
DRIVE
|
แหล่งที่มาของวิดีโอคือ Google ไดรฟ์
|
VideoProperties
การแสดง JSON
|
{
"outline": {
object (Outline )
},
"autoPlay": boolean,
"start": integer,
"end": integer,
"mute": boolean
}
|
ช่อง
|
outline
|
object (Outline )
เค้าโครงของวิดีโอ โครงร่างเริ่มต้นตรงกับค่าเริ่มต้นของวิดีโอใหม่ที่สร้างในเครื่องมือแก้ไขสไลด์
|
autoPlay
|
boolean
กำหนดว่าจะเปิดใช้วิดีโอเล่นอัตโนมัติเมื่อหน้าเว็บแสดงในโหมดนำเสนอหรือไม่ ค่าเริ่มต้นคือ "เท็จ"
|
start
|
integer
เวลาที่เริ่มเล่น ซึ่งวัดเป็นวินาทีนับจากจุดเริ่มต้นของวิดีโอ หากตั้งค่าไว้ เวลาเริ่มต้นควรมาก่อนเวลาสิ้นสุด หากคุณตั้งค่านี้เป็นค่าที่เกินความยาวของวิดีโอเป็นวินาที วิดีโอจะเล่นจากวินาทีสุดท้าย หากไม่ได้ตั้งค่า วิดีโอจะเล่นตั้งแต่ต้น
|
end
|
integer
เวลาที่จะจบการเล่น ซึ่งวัดในหน่วยวินาทีนับจากจุดเริ่มต้นของวิดีโอ หากตั้งค่าไว้ เวลาสิ้นสุดควรอยู่หลังเวลาเริ่มต้น หากไม่ได้ตั้งค่า หรือหากตั้งค่านี้เป็นค่าที่เกินความยาวของวิดีโอ วิดีโอจะเล่นจนจบ
|
mute
|
boolean
ปิดเสียงระหว่างเล่นวิดีโอหรือไม่ ค่าเริ่มต้นคือ "เท็จ"
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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. |"]]