GCKMediaRequestItem Class
Stay organized with collections
Save and categorize content based on your preferences.
A class representing a request item sent to Cast receivers.
It can be used for precaching media contents.
- Since
- 4.0
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
Helper to convert from GCKHLSSegmentFormat
to NSString
More...
Helper to convert from NSString
to GCKHLSSegmentFormat
More...
The media streaming protocol. More...
The initial time of media to precache. More...
Helper to convert from GCKHLSSegmentFormat
to NSString
- Since
- 4.1
Helper to convert from NSString
to GCKHLSSegmentFormat
- Since
- 4.1
Designated initializer.
Initializes a GCKMediaRequestItem
with URL, protocol type, initial time, and HLS segment type.
Convenience initializer.
Initializes a GCKMediaRequestItem
with URL and protocol type and use default values for other properties.
read
write
nonatomic
strong
The URL of media content.
read
write
nonatomic
assign
The media streaming protocol.
- (NSTimeInterval) initialTime
read
write
nonatomic
assign
The initial time of media to precache.
The default is 0.0.
read
write
nonatomic
assign
The HLS segment format.
It's required if protocolType == GCKStreamingProtocolTypeHLS. The default is GCKHLSSegmentFormatUndefined.
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\u003eGCKMediaRequestItem\u003c/code\u003e class represents a request to precache or stream media content on Cast receivers.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for initializing request items with media URLs, protocols, and initial playback times.\u003c/p\u003e\n"],["\u003cp\u003eHelper methods are available to convert between \u003ccode\u003eGCKHLSSegmentFormat\u003c/code\u003e and \u003ccode\u003eNSString\u003c/code\u003e representations.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003emediaURL\u003c/code\u003e, \u003ccode\u003eprotocolType\u003c/code\u003e, \u003ccode\u003einitialTime\u003c/code\u003e, and \u003ccode\u003ehlsSegmentFormat\u003c/code\u003e for customizing media requests.\u003c/p\u003e\n"],["\u003cp\u003eIntroduced in version 4.0, this class inherits from \u003ccode\u003eNSObject\u003c/code\u003e, \u003ccode\u003eNSCopying\u003c/code\u003e, and \u003ccode\u003eNSSecureCoding\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `GCKMediaRequestItem` class represents a request item for Cast receivers, primarily for precaching media. It offers instance methods to initialize an item with a URL, protocol type, initial time, and HLS segment format, or just URL and protocol type. Class methods assist in converting between `GCKHLSSegmentFormat` and `NSString`. Key properties include `mediaURL`, `protocolType`, `initialTime` (default 0.0), and `hlsSegmentFormat` (required for HLS).\n"],null,[]]