Google verwendet KI-Technologie, um Inhalte in Ihre bevorzugte Sprache zu übersetzen. KI-Übersetzungen können Fehler enthalten.
GCKMediaTrack-Klasse
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Eine Klasse, die einen Mediatrack darstellt.
Instanzen dieses Objekts sind unveränderlich.
Erbt NSObject, <NSCopying> und <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
Erstellt ein neues GCKMediaTrack-Objekt mit den angegebenen Property-Werten.
Die eindeutige numerische ID des Tracks.
| - (NSString*) contentIdentifier |
|
readnonatomiccopy |
Die Inhalts-ID des Tracks, die nil sein kann.
| - (NSString*) contentType |
|
readnonatomiccopy |
Der Inhaltstyp (MIME-Typ) des Tracks.
Der Untertyp des Text-Tracks. Gilt nur für Text-Tracks.
Der Name des Tracks, der möglicherweise nil ist.
| - (NSString*) languageCode |
|
readnonatomiccopy |
Der RFC 1766-Sprachcode des Tracks, der auch nil sein kann.
Die benutzerdefinierten Daten, falls vorhanden.
Muss entweder ein Objekt sein, das mit NSJSONSerialization in JSON serialisiert werden kann, oder nil.
[null,null,["Zuletzt aktualisiert: 2025-07-26 (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"]]