GCKMediaInformation-Klasse

GCKMediaInformation-Klassenreferenz

Übersicht

Eine Klasse, die Informationen zu einem Mediakosten aggregiert.

Übernimmt NSObject, <NSCopy> und <NSSecureCoding>.

Zusammenfassung der Instanzmethoden

(instancetype) - initWithContentID:streamType:contentType:metadata:adBreaks:adBreakClips:streamDuration:mediaTracks:textTrackStyle:customData:
 Veraltet. Mehr...
 
(instancetype) - initWithContentID:streamType:contentType:metadata:streamDuration:mediaTracks:textTrackStyle:customData:
 Veraltet. Mehr...
 
(nullable GCKMediaTrack *) - mediaTrackWithID:
 Sucht nach einem Medientrack mit der angegebenen Titel-ID. Mehr...
 

Property-Zusammenfassung

NSString * contentID
 Die Content-ID für diesen Stream. Mehr...
 
NSURL * contentURL
 Die URL des Contents, der wiedergegeben werden soll. Mehr...
 
GCKMediaStreamType streamType
 Der Streamtyp. Mehr...
 
NSString * contentType
 Der MIME-Typ. Mehr...
 
GCKMediaMetadatametadata
 Die Mediakosten. Mehr...
 
NSArray< GCKAdBreakInfo * > * adBreaks
 Die Liste der Werbeunterbrechungen in diesem Content Mehr...
 
NSArray< GCKAdBreakClipInfo * > * adBreakClips
 Die Liste der Clips für Werbeunterbrechungen in diesem Content. Mehr...
 
NSTimeInterval streamDuration
 Die Länge des Streams in Sekunden oder INFINITY, wenn es sich um einen Livestream handelt. Mehr...
 
NSArray< GCKMediaTrack * > * mediaTracks
 Die Medientracks für diesen Stream. Mehr...
 
GCKMediaTextTrackStyletextTrackStyle
 Der Text-Track-Stil für diesen Stream. Mehr...
 
NSString * entity
 Der von Google Assistant verwendete Deeplink für die Medien, falls vorhanden. Mehr...
 
GCKVASTAdsRequestVMAP
 Die VMAP-Anfragekonfiguration, falls vorhanden. Mehr...
 
NSTimeInterval startAbsoluteTime
 Die Epochenzeit in Sekunden der Startzeit eines Livestreams. Mehr...
 
GCKHLSSegmentFormat hlsSegmentFormat
 Das Format des HLS-Audiosegments. Mehr...
 
GCKHLSVideoSegmentFormat hlsVideoSegmentFormat
 Das Format des HLS-Videosegments. Mehr...
 
id customData
 Die benutzerdefinierten Daten, falls vorhanden. Mehr...
 

Methodendetail

- (instancetype) initWithContentID: (NSString *)  contentID
streamType: (GCKMediaStreamType streamType
contentType: (NSString *)  contentType
metadata: (nullable GCKMediaMetadata *)  metadata
adBreaks: (nullable NSArray< GCKAdBreakInfo * > *)  adBreaks
adBreakClips: (nullable NSArray< GCKAdBreakClipInfo * > *)  adBreakClips
streamDuration: (NSTimeInterval)  streamDuration
mediaTracks: (nullable NSArray< GCKMediaTrack * > *)  mediaTracks
textTrackStyle: (nullable GCKMediaTextTrackStyle *)  textTrackStyle
customData: (nullable id)  customData 

Veraltet.

Verwenden Sie GCKMediaInformationBuilder, um GCKMediaInformation-Objekte zu initialisieren.

Parameters
contentIDThe content ID.
streamTypeThe stream type.
contentTypeThe content (MIME) type.
metadataThe media item metadata.
adBreaksThe list of ad breaks in this content.
adBreakClipsThe list of ad break clips in this content.
streamDurationThe stream duration.
mediaTracksThe media tracks, if any, otherwise nil.
textTrackStyleThe text track style, if any, otherwise nil.
customDataThe custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Sincé
4,3
- (instancetype) initWithContentID: (NSString *)  contentID
streamType: (GCKMediaStreamType streamType
contentType: (NSString *)  contentType
metadata: (nullable GCKMediaMetadata *)  metadata
streamDuration: (NSTimeInterval)  streamDuration
mediaTracks: (nullable NSArray< GCKMediaTrack * > *)  mediaTracks
textTrackStyle: (nullable GCKMediaTextTrackStyle *)  textTrackStyle
customData: (nullable id)  customData 

Veraltet.

Verwenden Sie GCKMediaInformationBuilder, um GCKMediaInformation-Objekte zu initialisieren.

Parameters
contentIDThe content ID.
streamTypeThe stream type.
contentTypeThe content (MIME) type.
metadataThe media item metadata.
streamDurationThe stream duration.
mediaTracksThe media tracks, if any, otherwise nil.
textTrackStyleThe text track style, if any, otherwise nil.
customDataThe custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
- (nullable GCKMediaTrack *) mediaTrackWithID: (NSInteger)  trackID

Sucht nach einem Medientrack mit der angegebenen Titel-ID.

Parameters
trackIDThe media track ID.
Gibt Folgendes zurück:
Das übereinstimmende GCKMediaTrack-Objekt oder nil, wenn kein Medien-Track mit der angegebenen ID vorhanden ist.

Property-Details

- (NSString*) contentID
readnonatomiccopy

Die Content-ID für diesen Stream.

- (NSURL*) contentURL
readnonatomiccopy

Die URL des Contents, der wiedergegeben werden soll.

Sincé
4.3.4
- (GCKMediaStreamType) streamType
readnonatomicassign

Der Streamtyp.

- (NSString*) contentType
readnonatomiccopy

Der MIME-Typ.

- (GCKMediaMetadata*) metadata
readnonatomicassign

Die Mediakosten.

- (NSArray<GCKAdBreakInfo *>*) adBreaks
readnonatomiccopy

Die Liste der Werbeunterbrechungen in diesem Content

- (NSArray<GCKAdBreakClipInfo *>*) adBreakClips
readnonatomiccopy

Die Liste der Clips für Werbeunterbrechungen in diesem Content.

Sincé
3,3
- (NSTimeInterval) streamDuration
readnonatomicassign

Die Länge des Streams in Sekunden oder INFINITY, wenn es sich um einen Livestream handelt.

- (NSArray<GCKMediaTrack *>*) mediaTracks
readnonatomiccopy

Die Medientracks für diesen Stream.

- (GCKMediaTextTrackStyle*) textTrackStyle
readnonatomiccopy

Der Text-Track-Stil für diesen Stream.

- (NSString*) entity
readnonatomiccopy

Der von Google Assistant verwendete Deeplink für die Medien, falls vorhanden.

Sincé
4,0
- (GCKVASTAdsRequest*) VMAP
readnonatomicassign

Die VMAP-Anfragekonfiguration, falls vorhanden.

Weitere Informationen: Vorlage für die Auslieferung von digitalen Videoanzeigen 4.0 Wenn dieser nicht null ist, werden alle anderen anzeigenbezogenen Felder ignoriert.

Sincé
4.3.4
- (NSTimeInterval) startAbsoluteTime
readnonatomicassign

Die Epochenzeit in Sekunden der Startzeit eines Livestreams.

Bei Livestreams mit einer bekannten Startzeit, z.B. einer Live-TV-Sendung oder einem Sportspiel, wäre dies die Epoche, zu der das Ereignis begann. Andernfalls ist es die Startzeit des Live-Suchbereichs, als das Streaming gestartet wurde.

Sincé
4.4.1
- (GCKHLSSegmentFormat) hlsSegmentFormat
readnonatomicassign

Das Format des HLS-Audiosegments.

Sincé
4,6.0
- (GCKHLSVideoSegmentFormat) hlsVideoSegmentFormat
readnonatomicassign

Das Format des HLS-Videosegments.

Sincé
4,6.0
- (id) customData
readnonatomicassign

Die benutzerdefinierten Daten, falls vorhanden.