คลาส GCKMediaTrack
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คลาสที่แสดงแทร็กสื่อ
อินสแตนซ์ของออบเจ็กต์นี้เปลี่ยนแปลงไม่ได้
สืบทอด NSObject, <NSCopying> และ <NSCoding>
- (instancetype) initWithIdentifier: |
|
(NSInteger) |
identifier |
contentIdentifier: |
|
(NSString *__nullable) |
contentIdentifier |
contentType: |
|
(NSString *) |
contentType |
type: |
|
(GCKMediaTrackType) |
type |
textSubtype: |
|
(GCKMediaTextTrackSubtype) |
textSubtype |
name: |
|
(NSString *__nullable) |
name |
languageCode: |
|
(NSString *__nullable) |
languageCode |
customData: |
|
(id __nullable) |
customData |
|
|
| |
ตัวเริ่มต้นที่กำหนด
สร้าง GCKMediaTrack ใหม่ด้วยค่าพร็อพเพอร์ตี้ที่ระบุ
ตัวระบุที่เป็นตัวเลขที่ไม่ซ้ำกันของแทร็ก
- (NSString*) contentIdentifier |
|
readnonatomiccopy |
ตัวระบุเนื้อหาของแทร็ก ซึ่งอาจเป็น nil
- (NSString*) contentType |
|
readnonatomiccopy |
ประเภทเนื้อหา (MIME) ของแทร็ก
ประเภทข้อมูลย่อยของแทร็กข้อความ ใช้กับแทร็กข้อความเท่านั้น
ชื่อของแทร็ก ซึ่งอาจเป็น nil
- (NSString*) languageCode |
|
readnonatomiccopy |
รหัสภาษา RFC 1766 ของแทร็ก ซึ่งอาจเป็น nil
ข้อมูลที่กำหนดเอง (หากมี)
ต้องเป็นออบเจ็กต์ที่สามารถซีเรียลไลซ์เป็น JSON โดยใช้ NSJSONSerialization หรือ nil
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[],["The `GCKMediaTrack` class represents an immutable media track with properties like a unique numeric identifier, content identifier, content type (MIME), track type, text subtype, name, language code, and custom data. It provides a designated initializer (`initWithIdentifier`) to construct a new instance, defining all track properties. Each property, including identifier, content, and name, is described. Custom data can be stored, which must be serializable to JSON.\n"],null,[]]