GCKMediaRequestItem Class Reference

A class representing a request item sent to Cast receivers. More...

#import <GCKMediaRequestItem.h>

+ Inheritance diagram for GCKMediaRequestItem:

Instance Methods

(instancetype) - initWithURL:protocolType:initialTime:hlsSegmentFormat:
 Designated initializer. More...
 
(instancetype) - initWithURL:protocolType:
 Convenience initializer. More...
 

Class Methods

(NSString *) + mapHLSSegmentFormatToString:
 Helper to convert from GCKHLSSegmentFormat to NSString More...
 
(GCKHLSSegmentFormat) + mapHLSSegmentFormatStringToEnum:
 Helper to convert from NSString to GCKHLSSegmentFormat More...
 

Properties

NSURL * mediaURL
 The URL of media content. More...
 
GCKStreamingProtocolType protocolType
 The media streaming protocol. More...
 
NSTimeInterval initialTime
 The initial time of media to precache. More...
 
GCKHLSSegmentFormat hlsSegmentFormat
 The HLS segment format. More...
 

Detailed Description

A class representing a request item sent to Cast receivers.

It can be used for precaching media contents.

Since
4.0

Method Documentation

- (instancetype) initWithURL: (NSURL *)  url
protocolType: (GCKStreamingProtocolType)  protocolType 

Convenience initializer.

Initializes a GCKMediaRequestItem with URL and protocol type and use default values for other properties.

- (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.

+ (GCKHLSSegmentFormat) mapHLSSegmentFormatStringToEnum: (NSString *)  hlsSegmentFormatString

Helper to convert from NSString to GCKHLSSegmentFormat

Since
4.1
+ (NSString *) mapHLSSegmentFormatToString: (GCKHLSSegmentFormat)  hlsSegmentFormat

Helper to convert from GCKHLSSegmentFormat to NSString

Since
4.1

Property Documentation

- (GCKHLSSegmentFormat) hlsSegmentFormat
readwritenonatomicassign

The HLS segment format.

It's required if protocolType == GCKStreamingProtocolTypeHLS. The default is GCKHLSSegmentFormatUndefined.

- (NSTimeInterval) initialTime
readwritenonatomicassign

The initial time of media to precache.

The default is 0.0.

- (NSURL*) mediaURL
readwritenonatomicstrong

The URL of media content.

- (GCKStreamingProtocolType) protocolType
readwritenonatomicassign

The media streaming protocol.


The documentation for this class was generated from the following file: