AI-generated Key Takeaways
-
GCKMediaRequestItem is a class used to represent media request items sent to Cast receivers.
-
This class can be utilized for precaching media content.
-
It inherits from NSObject and conforms to NSCopying and NSSecureCoding protocols.
-
The class includes methods for initialization and for mapping HLS segment formats to and from strings.
-
Key properties of GCKMediaRequestItem include mediaURL, protocolType, initialTime, and hlsSegmentFormat.
Overview
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>.
Method Detail
| + (NSString *) mapHLSSegmentFormatToString: | ( GCKHLSSegmentFormat ) | hlsSegmentFormat |
Helper to convert from GCKHLSSegmentFormat
to NSString
- Since
- 4.1
| + ( GCKHLSSegmentFormat ) mapHLSSegmentFormatStringToEnum: | (NSString *) | hlsSegmentFormatString |
Helper to convert from NSString
to GCKHLSSegmentFormat
- Since
- 4.1
| - (instancetype) initWithURL: | (NSURL *) | url | |
| protocolType: | ( GCKStreamingProtocolType ) | protocolType | |
| initialTime: | (NSTimeInterval) | initialTime | |
| hlsSegmentFormat: | ( GCKHLSSegmentFormat ) | hlsSegmentFormat | |
Designated initializer.
Initializes a GCKMediaRequestItem with URL, protocol type, initial time, and HLS segment type.
| - (instancetype) initWithURL: | (NSURL *) | url | |
| protocolType: | ( GCKStreamingProtocolType ) | protocolType | |
Convenience initializer.
Initializes a GCKMediaRequestItem with URL and protocol type and use default values for other properties.
Property Detail
The URL of media content.
The media streaming protocol.
The initial time of media to precache.
The default is 0.0.
The HLS segment format.
It's required if protocolType == GCKStreamingProtocolTypeHLS. The default is GCKHLSSegmentFormatUndefined.

