Videos
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Video
Đáp
PageElement
đại diện cho một video.
Biểu diễn dưới dạng JSON
|
{
"url": string,
"source": enum (Source ),
"id": string,
"videoProperties": {
object (VideoProperties )
}
}
|
Trường
|
url
|
string
URL của một video. URL này hợp lệ miễn là video nguồn vẫn tồn tại và chế độ cài đặt chia sẻ không thay đổi.
|
source
|
enum (Source )
Nguồn video.
|
id
|
string
Giá trị nhận dạng duy nhất của nguồn video cho video này.
|
videoProperties
|
object (VideoProperties )
Thuộc tính của video.
|
Nguồn
Enum
|
SOURCE_UNSPECIFIED
|
Nguồn video chưa được xác định.
|
YOUTUBE
|
Nguồn video là YouTube.
|
DRIVE
|
Nguồn video là Google Drive.
|
VideoProperties
Các thuộc tính của
Video
.
Biểu diễn dưới dạng JSON
|
{
"outline": {
object (Outline )
},
"autoPlay": boolean,
"start": integer,
"end": integer,
"mute": boolean
}
|
Trường
|
outline
|
object (Outline )
Nội dung chính của video. Đường viền mặc định khớp với giao diện mặc định của các video mới được tạo trong trình chỉnh sửa Trang trình bày.
|
autoPlay
|
boolean
Liệu có bật tính năng tự động phát video khi trang hiển thị ở chế độ hiện hay không. Giá trị mặc định là sai.
|
start
|
integer
Thời gian bắt đầu phát, được tính bằng giây kể từ đầu video. Nếu được đặt, thời gian bắt đầu phải trước thời gian kết thúc. Nếu bạn đặt giá trị này thành một giá trị vượt quá thời lượng video tính bằng giây, thì video sẽ phát từ giây cuối cùng. Nếu bạn không đặt chính sách này, video sẽ phát từ đầu.
|
end
|
integer
Thời điểm kết thúc phát, được tính bằng giây tính từ đầu video. Nếu được đặt, thời gian kết thúc phải sau thời gian bắt đầu. Nếu bạn không đặt chính sách này hoặc đặt giá trị vượt quá thời lượng video, thì video sẽ được phát cho đến khi kết thúc.
|
mute
|
boolean
Liệu có tắt âm thanh trong khi phát video hay không. Giá trị mặc định là sai.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-03-21 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]