คลาส GCKMediaQueueItemBuilder
ออบเจ็กต์เครื่องมือสร้างสําหรับสร้างอินสแตนซ์ GCKMediaQueueItem ใหม่หรือที่ดึงมา
เครื่องมือสร้างอาจใช้ในการดึง GCKMediaQueueItem จากที่มีอยู่:
นอกจากนี้ยังใช้สร้าง GCKMediaQueueItem ใหม่ตั้งแต่ต้นได้ด้วย
รับค่า NSObject
ข้อมูลสื่อที่เชื่อมโยงกับรายการนี้
ระบุว่ารายการควรเริ่มเล่นโดยอัตโนมัติเมื่อกลายเป็นรายการปัจจุบันในคิวหรือไม่
หากเป็น NO
คิวจะหยุดชั่วคราวเมื่อมาถึงรายการนี้ ค่าเริ่มต้นคือ YES
- (NSTimeInterval) startTime |
|
readwritenonatomicassign |
เวลาเริ่มต้นของสินค้าเป็นวินาที
ค่าเริ่มต้นคือ kGCKInvalidTimeInterval ซึ่งบ่งบอกว่าไม่ได้ใช้เวลาเริ่มต้น (เช่น สําหรับสตรีมแบบสด) หรือควรใช้เวลาเริ่มต้นเริ่มต้น
- (NSTimeInterval) playbackDuration |
|
readwritenonatomicassign |
ระยะเวลาการเล่นรายการเป็นวินาที หรือ INFINITY
หากควรใช้ระยะเวลาจริงของสตรีม
- (NSTimeInterval) preloadTime |
|
readwritenonatomicassign |
ระยะเวลาเป็นวินาทีก่อนที่รายการก่อนหน้าจะสิ้นสุดลงก่อนที่ผู้รับควรเริ่มโหลดรายการนี้ล่วงหน้า
ค่าเริ่มต้นคือ kGCKInvalidTimeInterval ซึ่งแสดงว่าไม่มีเวลาโหลดล่วงหน้า
- (NSArray<NSNumber *>*) activeTrackIDs |
|
readwritenonatomiccopy |
รหัสแทร็กที่ใช้งานอยู่สำหรับรายการนี้
ข้อมูลที่กำหนดเองซึ่งเชื่อมโยงกับรายการนี้ หากมี
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-02 UTC
[null,null,["อัปเดตล่าสุด 2023-12-02 UTC"],[[["`GCKMediaQueueItemBuilder` constructs and customizes media queue items for Google Cast."],["It allows deriving new items from existing ones or building them from scratch."],["Key properties include media information, autoplay, start time, playback duration, and custom data."],["The `build` method creates a `GCKMediaQueueItem` instance from the builder's attributes."]]],["The `GCKMediaQueueItemBuilder` class constructs `GCKMediaQueueItem` instances. It can initialize with default values or copy attributes from an existing item, including the item ID. You can set properties like `mediaInformation`, `autoplay`, `startTime`, `playbackDuration`, `preloadTime`, `activeTrackIDs`, and `customData`. The `build` method creates a `GCKMediaQueueItem` using the configured attributes. Key actions include initializing the builder, modifying properties, and finally building the item.\n"]]