3 #import <GoogleCast/GCKDefines.h> 4 #import <GoogleCast/GCKMediaCommon.h> 5 #import <GoogleCast/GCKMediaInformation.h> 6 #import <GoogleCast/GCKMediaMetadata.h> 7 #import <GoogleCast/GCKMediaQueueItem.h> 8 #import <GoogleCast/GCKMediaStatus.h> 9 #import <GoogleCast/GCKRequest.h> 11 #import <Foundation/Foundation.h> 16 @protocol GCKRemoteMediaClientListener;
17 @protocol GCKRemoteMediaClientAdInfoParserDelegate;
19 GCK_ASSUME_NONNULL_BEGIN
32 @property(nonatomic, assign, readonly) BOOL
connected;
48 - (void)addListener:(
id<GCKRemoteMediaClientListener>)listener;
55 - (void)removeListener:(
id<GCKRemoteMediaClientListener>)listener;
63 @property(nonatomic, weak, readwrite) id<GCKRemoteMediaClientAdInfoParserDelegate>
94 GCK_DEPRECATED("Use loadMedia:withOptions:");
106 autoplay:(BOOL)autoplay
107 playPosition:(NSTimeInterval)playPosition
108 GCK_DEPRECATED("Use loadMedia:withOptions:");
123 autoplay:(BOOL)autoplay
124 playPosition:(NSTimeInterval)playPosition
125 customData:(
id GCK_NULLABLE_TYPE)customData
126 GCK_DEPRECATED("Use loadMedia:withOptions:");
140 autoplay:(BOOL)autoplay
141 playPosition:(NSTimeInterval)playPosition
142 activeTrackIDs:(NSArray<NSNumber *> *GCK_NULLABLE_TYPE)activeTrackIDs
143 GCK_DEPRECATED("Use loadMedia:withOptions:");
160 autoplay:(BOOL)autoplay
161 playPosition:(NSTimeInterval)playPosition
162 activeTrackIDs:(NSArray<NSNumber *> *GCK_NULLABLE_TYPE)activeTrackIDs
163 customData:(
id GCK_NULLABLE_TYPE)customData
164 GCK_DEPRECATED("Use loadMedia:withOptions:");
173 - (
GCKRequest *)setPlaybackRate:(
float)playbackRate;
186 - (
GCKRequest *)setPlaybackRate:(
float)playbackRate customData:(
id GCK_NULLABLE_TYPE)customData;
195 - (
GCKRequest *)setActiveTrackIDs:(NSArray<NSNumber *> *GCK_NULLABLE_TYPE)activeTrackIDs;
223 - (
GCKRequest *)pauseWithCustomData:(
id GCK_NULLABLE_TYPE)customData;
243 - (
GCKRequest *)stopWithCustomData:(
id GCK_NULLABLE_TYPE)customData;
262 - (
GCKRequest *)playWithCustomData:(
id GCK_NULLABLE_TYPE)customData;
290 - (
GCKRequest *)seekToTimeInterval:(NSTimeInterval)position
291 GCK_DEPRECATED("Use seekWithOptions:");
302 - (
GCKRequest *)seekToTimeInterval:(NSTimeInterval)position
303 resumeState:(GCKMediaResumeState)resumeState
304 GCK_DEPRECATED("Use seekWithOptions:");
318 - (
GCKRequest *)seekToTimeInterval:(NSTimeInterval)position
319 resumeState:(GCKMediaResumeState)resumeState
320 customData:(
id GCK_NULLABLE_TYPE)customData
321 GCK_DEPRECATED("Use seekWithOptions:");
342 - (
GCKRequest *)queueFetchItemsForIDs:(NSArray<NSNumber *> *)queueItemIDs;
355 startIndex:(NSUInteger)startIndex
356 repeatMode:(GCKMediaRepeatMode)repeatMode
357 GCK_DEPRECATED("Use queueLoadItems:withOptions:");
373 startIndex:(NSUInteger)startIndex
374 repeatMode:(GCKMediaRepeatMode)repeatMode
375 customData:(
id GCK_NULLABLE_TYPE)customData
376 GCK_DEPRECATED("Use queueLoadItems:withOptions:");
396 startIndex:(NSUInteger)startIndex
397 playPosition:(NSTimeInterval)playPosition
398 repeatMode:(GCKMediaRepeatMode)repeatMode
399 customData:(
id GCK_NULLABLE_TYPE)customData
400 GCK_DEPRECATED("Use queueLoadItems:withOptions:");
424 beforeItemWithID:(NSUInteger)beforeItemID;
440 beforeItemWithID:(NSUInteger)beforeItemID
441 customData:(
id GCK_NULLABLE_TYPE)customData;
464 beforeItemWithID:(NSUInteger)beforeItemID;
483 beforeItemWithID:(NSUInteger)beforeItemID
484 playPosition:(NSTimeInterval)playPosition
485 customData:(
id GCK_NULLABLE_TYPE)customData;
505 customData:(
id GCK_NULLABLE_TYPE)customData;
515 - (
GCKRequest *)queueRemoveItemsWithIDs:(NSArray<NSNumber *> *)itemIDs;
528 - (
GCKRequest *)queueRemoveItemsWithIDs:(NSArray<NSNumber *> *)itemIDs
529 customData:(
id GCK_NULLABLE_TYPE)customData;
537 - (
GCKRequest *)queueRemoveItemWithID:(NSUInteger)itemID;
549 - (
GCKRequest *)queueReorderItemsWithIDs:(NSArray<NSNumber *> *)queueItemIDs
550 insertBeforeItemWithID:(NSUInteger)beforeItemID;
565 - (
GCKRequest *)queueReorderItemsWithIDs:(NSArray<NSNumber *> *)queueItemIDs
566 insertBeforeItemWithID:(NSUInteger)beforeItemID
567 customData:(
id GCK_NULLABLE_TYPE)customData;
578 - (
GCKRequest *)queueMoveItemWithID:(NSUInteger)itemID beforeItemWithID:(NSUInteger)beforeItemID;
586 - (
GCKRequest *)queueJumpToItemWithID:(NSUInteger)itemID;
597 - (
GCKRequest *)queueJumpToItemWithID:(NSUInteger)itemID
598 customData:(
id GCK_NULLABLE_TYPE)customData;
613 - (
GCKRequest *)queueJumpToItemWithID:(NSUInteger)itemID
614 playPosition:(NSTimeInterval)playPosition
615 customData:(
id GCK_NULLABLE_TYPE)customData;
637 - (
GCKRequest *)queueSetRepeatMode:(GCKMediaRepeatMode)repeatMode;
645 - (
GCKRequest *)setStreamVolume:(
float)volume;
656 - (
GCKRequest *)setStreamVolume:(
float)volume customData:(
id GCK_NULLABLE_TYPE)customData;
675 - (
GCKRequest *)setStreamMuted:(BOOL)muted customData:(
id GCK_NULLABLE_TYPE)customData;
699 @protocol GCKRemoteMediaClientListener <NSObject>
710 didStartMediaSessionWithID:(NSInteger)sessionID;
720 didUpdateMediaStatus:(
GCKMediaStatus *GCK_NULLABLE_TYPE)mediaStatus;
755 didReceiveQueueItemIDs:(NSArray<NSNumber *> *)queueItemIDs;
769 didInsertQueueItemsWithIDs:(NSArray<NSNumber *> *)queueItemIDs
770 beforeItemWithID:(GCKMediaQueueItemID)beforeItemID;
781 didUpdateQueueItemsWithIDs:(NSArray<NSNumber *> *)queueItemIDs;
792 didRemoveQueueItemsWithIDs:(NSArray<NSNumber *> *)queueItemIDs;
812 @protocol GCKRemoteMediaClientAdInfoParserDelegate <NSObject>
837 GCK_ASSUME_NONNULL_END
An object for tracking an asynchronous request.
Definition: GCKRequest.h:35
A class representing a style for a text media track.
Definition: GCKMediaTextTrackStyle.h:92
A class representing an ad break.
Definition: GCKAdBreakInfo.h:16