GCKMediaTrack 类

GCKMediaTrack 类参考

概览

表示媒体轨道的一个类。

此对象的实例是不可变的。

继承自 NSObject、<NSCopying> 和 <NSCoding>。

实例方法摘要

(instancetype) - initWithIdentifier:contentIdentifier:contentType:type:textSubtype:name:languageCode:customData:
 指定初始化程序。更多…
 

房源摘要

NSInteger identifier
 轨道的唯一数字标识符。更多…
 
NSString * contentIdentifier
 轨道的 content_id,可以是 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

轨道的 content_id,可以是 nil

- (NSString*) contentType
readnonatomiccopy

轨道的内容 (MIME) 类型。

- (GCKMediaTrackType) type
readnonatomicassign

轨道的类型。

- (GCKMediaTextTrackSubtype) textSubtype
readnonatomicassign

文本轨道的子类型;仅适用于文本轨道。

- (NSString*) name
readnonatomiccopy

轨道的名称,可以是 nil

- (NSString*) languageCode
readnonatomiccopy

轨道的 RFC 1766 语言代码,可以是 nil

- (id) customData
readnonatomicstrong

自定义数据(如果有)。

必须是可以使用 NSJSONSerialization 序列化为 JSON 的对象,或者为 nil