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 ) ویژگی های ویدیو. |
منبع
Enums |
---|
SOURCE_UNSPECIFIED | منبع ویدیو مشخص نشده است. |
YOUTUBE | منبع ویدیو یوتیوب است. |
DRIVE | منبع ویدیو گوگل درایو است. |
VideoProperties
نمایندگی 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 Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-03-21 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-03-21 بهوقت ساعت هماهنگ جهانی."],[],[],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. |"]]