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 |
|
|
| |
- (NSString*) contentIdentifier |
|
readnonatomiccopy |
- (NSString*) contentType |
|
readnonatomiccopy |
- (NSString*) languageCode |
|
readnonatomiccopy |
轨道的 RFC 1766 语言代码,可以是 nil
。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe \u003ccode\u003eGCKMediaTrack\u003c/code\u003e class represents a media track with properties like identifier, content type, and language.\u003c/p\u003e\n"],["\u003cp\u003eInstances of \u003ccode\u003eGCKMediaTrack\u003c/code\u003e are immutable, meaning their properties cannot be changed after creation.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a designated initializer to create instances with specific property values.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGCKMediaTrack\u003c/code\u003e inherits from \u003ccode\u003eNSObject\u003c/code\u003e, \u003ccode\u003eNSCopying\u003c/code\u003e, and \u003ccode\u003eNSCoding\u003c/code\u003e, enabling object copying and archiving.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access track information through various read-only properties like \u003ccode\u003eidentifier\u003c/code\u003e, \u003ccode\u003econtentType\u003c/code\u003e, \u003ccode\u003etype\u003c/code\u003e, and more.\u003c/p\u003e\n"]]],["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,[]]