คลาส GCKMediaTrack

ข้อมูลอ้างอิงของคลาส GCKMediaTrack

ภาพรวม

คลาสที่แสดงแทร็กสื่อ

อินสแตนซ์ของออบเจ็กต์นี้เปลี่ยนแปลงไม่ได้

สืบทอด NSObject, <NSCopying> และ <NSCoding>

สรุปวิธีการของอินสแตนซ์

(instancetype) - initWithIdentifier:contentIdentifier:contentType:type:textSubtype:name:languageCode:customData:
 ตัวเริ่มต้นที่กำหนด เพิ่มเติม...
 

สรุปพร็อพเพอร์ตี้

NSInteger identifier
 ตัวระบุที่เป็นตัวเลขที่ไม่ซ้ำกันของแทร็ก เพิ่มเติม...
 
NSString * contentIdentifier
 ตัวระบุเนื้อหาของแทร็ก ซึ่งอาจเป็น nil เพิ่มเติม...
 
NSString * contentType
 ประเภทเนื้อหา (MIME) ของแทร็ก เพิ่มเติม...
 
GCKMediaTrackType type
 ประเภทของแทร็ก เพิ่มเติม...
 
GCKMediaTextTrackSubtype textSubtype
 ประเภทข้อมูลย่อยของแทร็กข้อความ ใช้กับแทร็กข้อความเท่านั้น เพิ่มเติม...
 
NSString * name
 ชื่อของแทร็ก ซึ่งอาจเป็น nil เพิ่มเติม...
 
NSString * languageCode
 รหัสภาษา RFC 1766 ของแทร็ก ซึ่งอาจเป็น nil เพิ่มเติม...
 
id customData
 ข้อมูลที่กำหนดเอง (หากมี) เพิ่มเติม...
 

รายละเอียดวิธีการ

- (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 ใหม่ด้วยค่าพร็อพเพอร์ตี้ที่ระบุ

รายละเอียดพร็อพเพอร์ตี้

- (NSInteger) identifier
readnonatomicassign

ตัวระบุที่เป็นตัวเลขที่ไม่ซ้ำกันของแทร็ก

- (NSString*) contentIdentifier
readnonatomiccopy

ตัวระบุเนื้อหาของแทร็ก ซึ่งอาจเป็น nil

- (NSString*) contentType
readnonatomiccopy

ประเภทเนื้อหา (MIME) ของแทร็ก

- (GCKMediaTrackType) type
readnonatomicassign

ประเภทของแทร็ก

- (GCKMediaTextTrackSubtype) textSubtype
readnonatomicassign

ประเภทข้อมูลย่อยของแทร็กข้อความ ใช้กับแทร็กข้อความเท่านั้น

- (NSString*) name
readnonatomiccopy

ชื่อของแทร็ก ซึ่งอาจเป็น nil

- (NSString*) languageCode
readnonatomiccopy

รหัสภาษา RFC 1766 ของแทร็ก ซึ่งอาจเป็น nil

- (id) customData
readnonatomicstrong

ข้อมูลที่กำหนดเอง (หากมี)

ต้องเป็นออบเจ็กต์ที่สามารถซีเรียลไลซ์เป็น JSON โดยใช้ NSJSONSerialization หรือ nil