GCKMediaInfo क्लास
ऐसी क्लास जो किसी मीडिया आइटम के बारे में जानकारी इकट्ठा करती है.
NSObject, <NSकॉपी>, और <NSSecureCoding> को इनहेरिट करता है.
- (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 |
|
|
| |
समर्थन नहीं होना या रुकना.
GCKMediaInformation ऑब्जेक्ट शुरू करने के लिए, GCKMediaInformationBuilder का इस्तेमाल करें.
- Parameters
-
contentID | The content ID. |
streamType | The stream type. |
contentType | The content (MIME) type. |
metadata | The media item metadata. |
adBreaks | The list of ad breaks in this content. |
adBreakClips | The list of ad break clips in this content. |
streamDuration | The stream duration. |
mediaTracks | The media tracks, if any, otherwise nil . |
textTrackStyle | The text track style, if any, otherwise nil . |
customData | The custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil . |
- से
- 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 |
|
|
| |
समर्थन नहीं होना या रुकना.
GCKMediaInformation ऑब्जेक्ट शुरू करने के लिए, GCKMediaInformationBuilder का इस्तेमाल करें.
- Parameters
-
contentID | The content ID. |
streamType | The stream type. |
contentType | The content (MIME) type. |
metadata | The media item metadata. |
streamDuration | The stream duration. |
mediaTracks | The media tracks, if any, otherwise nil . |
textTrackStyle | The text track style, if any, otherwise nil . |
customData | The custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil . |
- (nullable GCKMediaTrack *) mediaTrackWithID: |
|
(NSInteger) |
trackID |
|
दिए गए ट्रैक आईडी वाले मीडिया ट्रैक को खोजता है.
- Parameters
-
trackID | The media track ID. |
- रिटर्न
- मेल खाने वाला GCKMediaTrack ऑब्जेक्ट या अगर दिए गए आईडी वाला कोई मीडिया ट्रैक न हो, तो
nil
.
इस स्ट्रीम का Content ID.
चलाए जाने वाले कॉन्टेंट का यूआरएल.
- से
- 4.3.4
- (NSString*) contentType |
|
readnonatomiccopy |
इस वीडियो में विज्ञापन के लिए ब्रेक की सूची.
इस कॉन्टेंट में मौजूद विज्ञापन के लिए ब्रेक की क्लिप.
- से
- 3.3
- (NSTimeInterval) streamDuration |
|
readnonatomicassign |
स्ट्रीम की अवधि, सेकंड में या अगर लाइव स्ट्रीम है, तो INFINITY
.
इस स्ट्रीम के लिए मीडिया ट्रैक.
इस स्ट्रीम के लिए टेक्स्ट ट्रैक की स्टाइल.
अगर Google Assistant किसी मीडिया का इस्तेमाल करती है, तो उसके लिए डीप लिंक.
- से
- 4.0
- (NSTimeInterval) startAbsoluteTime |
|
readnonatomicassign |
लाइव स्ट्रीम के शुरू होने का समय (सेकंड में).
जिन लाइव स्ट्रीम के शुरू होने का समय पहले से तय होता है उनके लिए, जैसे कि लाइव टीवी शो या खेल-कूद के गेम. इसके लिए, इवेंट शुरू होने की तारीख होगी. अगर ऐसा नहीं किया जाता है, तो स्ट्रीमिंग शुरू होने पर, यह लाइव स्ट्रीमिंग की शुरुआत का समय होगा.
- से
- 4.4.1
HLS ऑडियो सेगमेंट का फ़ॉर्मैट.
- से
- 4.6.0
HLS वीडियो सेगमेंट का फ़ॉर्मैट.
- से
- 4.6.0
अगर ज़रूरत हो, तो कस्टम डेटा.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-12-02 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2023-12-02 (UTC) को अपडेट किया गया."],[[["The `GCKMediaInformation` class stores details about a media item, like content ID, URL, type, metadata, stream duration, and more."],["It includes properties for ad breaks, ad break clips, media tracks, text track style, and custom data."],["Two deprecated initializers are listed, with a recommendation to use `GCKMediaInformationBuilder` instead."],["The `mediaTrackWithID:` method helps find a specific media track using its ID."],["Several properties provide detailed information about the media, such as content ID, URL, stream type, metadata, ad breaks, stream duration, and custom data."]]],["The `GCKMediaInformation` class aggregates data about a media item, including its `contentID`, `contentURL`, `streamType`, and `contentType`. It also includes media metadata, such as `metadata`, `adBreaks`, `adBreakClips`, `streamDuration`, and `mediaTracks`. Actions include initializing the media item using deprecated methods, searching for a media track by its ID with `mediaTrackWithID:`, and accessing properties, which includes properties like the `textTrackStyle`, `entity`, `VMAP`, `startAbsoluteTime`, `hlsSegmentFormat`, `hlsVideoSegmentFormat`, and custom data (`customData`).\n"]]