GCKMediaTrack Class
Stay organized with collections
Save and categorize content based on your preferences.
A class representing a media track.
Instances of this object are immutable.
Inherits NSObject, <NSCopying>, and <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 |
|
|
| |
Designated initializer.
Constructs a new GCKMediaTrack with the given property values.
The track's unique numeric identifier.
- (NSString*) contentIdentifier |
|
readnonatomiccopy |
The track's content identifier, which may be nil
.
- (NSString*) contentType |
|
readnonatomiccopy |
The track's content (MIME) type.
The text track's subtype; applies only to text tracks.
The track's name, which may be nil
.
- (NSString*) languageCode |
|
readnonatomiccopy |
The track's RFC 1766 language code, which may be nil
.
The custom data, if any.
Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 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,[]]