概览
表示发送到 Cast 接收器的请求项的类。
它可用于预缓存媒体内容。
- 开始时间
 - 4.0
 
继承 NSObject、<NSCopy> 和 <NSSecureCoding>。
实例方法摘要 | |
| (instancetype) | - initWithURL:protocolType:initialTime:hlsSegmentFormat: | 
| 指定的初始化程序。更多... | |
| (instancetype) | - initWithURL:protocolType: | 
| 便捷初始化程序。更多... | |
类方法摘要 | |
| (NSString *) | + mapHLSSegmentFormatToString: | 
用于将GCKHLSSegmentFormat转换为NSString  更多...的助手  | |
| (GCKHLSSegmentFormat) | + mapHLSSegmentFormatStringToEnum: | 
用于将NSString转换为GCKHLSSegmentFormat  更多...的助手  | |
属性摘要 | |
| NSURL * | mediaURL | 
| 媒体内容的网址。更多... | |
| GCKStreamingProtocolType | protocolType | 
| 媒体流式传输协议。更多... | |
| NSTimeInterval | initialTime | 
| 媒体的首次预缓存时间。更多... | |
| GCKHLSSegmentFormat | hlsSegmentFormat | 
| HLS 片段格式。更多... | |
方法详细信息
| + (NSString *) mapHLSSegmentFormatToString: | (GCKHLSSegmentFormat) | hlsSegmentFormat | 
用于将 GCKHLSSegmentFormat 转换为 NSString 的辅助工具
- 开始时间
 - 4.1
 
| + (GCKHLSSegmentFormat) mapHLSSegmentFormatStringToEnum: | (NSString *) | hlsSegmentFormatString | 
用于将 NSString 转换为 GCKHLSSegmentFormat 的辅助工具
- 开始时间
 - 4.1
 
| - (instancetype) initWithURL: | (NSURL *) | url | |
| protocolType: | (GCKStreamingProtocolType) | protocolType | |
| initialTime: | (NSTimeInterval) | initialTime | |
| hlsSegmentFormat: | (GCKHLSSegmentFormat) | hlsSegmentFormat | |
指定的初始化程序。
使用网址、协议类型、初始时间和 HLS 片段类型初始化 GCKMediaRequestItem。
| - (instancetype) initWithURL: | (NSURL *) | url | |
| protocolType: | (GCKStreamingProtocolType) | protocolType | |
便捷初始化程序。
使用网址和协议类型初始化 GCKMediaRequestItem,并为其他属性使用默认值。
房源详情
      
  | 
  readwritenonatomicstrong | 
媒体内容的网址。
      
  | 
  readwritenonatomicassign | 
媒体流式传输协议。
      
  | 
  readwritenonatomicassign | 
媒体的首次预缓存时间。
默认值为 0.0。
      
  | 
  readwritenonatomicassign | 
HLS 片段格式。
如果 ProtocolType == GCKStreamingProtocolTypeHLS 则是必需的。默认值为 GCKHLSSegmentFormatUnspecified。