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。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-26。"],[[["The `GCKMediaTrack` class represents a media track with properties like identifier, content type, and language."],["Instances of `GCKMediaTrack` are immutable, meaning their properties cannot be changed after creation."],["It provides a designated initializer to create instances with specific property values."],["`GCKMediaTrack` inherits from `NSObject`, `NSCopying`, and `NSCoding`, enabling object copying and archiving."],["Developers can access track information through various read-only properties like `identifier`, `contentType`, `type`, and more."]]],["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"]]