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 <NSSecureCoding>.
The track's unique numeric identifier. More...
The track's content identifier, which may be nil
. More...
The track's content (MIME) type. More...
The text track's subtype; applies only to text tracks. More...
The track's name, which may be nil
. More...
The track's RFC 1766 language code, which may be nil
. More...
- (nullable instancetype) initWithIdentifier: |
|
(NSInteger) |
identifier
|
contentIdentifier: |
|
(nullable NSString *) |
contentIdentifier
|
contentType: |
|
(NSString *) |
contentType
|
type: |
|
(GCKMediaTrackType) |
type
|
textSubtype: |
|
( GCKMediaTextTrackSubtype
) |
textSubtype
|
name: |
|
(nullable NSString *) |
name
|
languageCode: |
|
(nullable NSString *) |
languageCode
|
customData: |
|
(nullable id) |
customData
|
|
|
|
|
Designated initializer.
Constructs a new GCKMediaTrack
with the given property values. Can return a nil
value.
The track's unique numeric identifier.
- (NSString*) contentIdentifier
read
nonatomic
copy
The track's content identifier, which may be nil
.
- (NSString*) contentType
read
nonatomic
copy
The track's content (MIME) type.
- (GCKMediaTrackType) type
read
nonatomic
assign
The text track's subtype; applies only to text tracks.
The track's name, which may be nil
.
- (NSString*) languageCode
read
nonatomic
copy
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\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\u003eNSSecureCoding\u003c/code\u003e, offering functionalities related to object copying and secure coding.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties for custom data that can be serialized to JSON.\u003c/p\u003e\n"]]],[],null,[]]