A class that holds status information about some media.
More...
#import <GCKMediaStatus.h>
A class that holds status information about some media.
- (instancetype) initWithSessionID: |
|
(NSInteger) |
mediaSessionID |
mediaInformation: |
|
(GCKMediaInformation *GCK_NULLABLE_TYPE) |
mediaInformation |
|
|
| |
Designated initializer.
- Parameters
-
mediaSessionID | The media session ID. |
mediaInformation | The media information. |
- (BOOL) isMediaCommandSupported: |
|
(NSInteger) |
command |
|
Checks if the stream supports a given control command.
- (BOOL) queueHasNextItem |
|
|
|
Checks if there is an item after the currently playing item in the queue.
- (NSInteger) queueIndexForItemID: |
|
(NSUInteger) |
itemID |
|
Returns the index of the item with the given item ID in the playback queue, or -1 if there is no such item in the queue.
Returns the item at the specified index in the playback queue.
- (NSUInteger) queueItemCount |
|
|
|
Returns the number of items in the playback queue.
Returns the item with the given item ID in the playback queue.
- (GCK_ASSUME_NONNULL_BEGIN GCK_EXTERN const NSInteger) kGCKMediaCommandPause |
A flag (bitmask) indicating that a media item can be paused.
- (GCK_EXTERN const NSInteger) kGCKMediaCommandQueueNext |
A flag (bitmask) indicating that a media item supports moving to the next item in the queue.
- Deprecated:
- This flag is currently not implemented.
- (GCK_EXTERN const NSInteger) kGCKMediaCommandQueuePrevious |
A flag (bitmask) indicating that a media item supports moving to the previous item in the queue.
- Deprecated:
- This flag is currently not implemented.
- (GCK_EXTERN const NSInteger) kGCKMediaCommandSeek |
A flag (bitmask) indicating that a media item supports seeking.
- (GCK_EXTERN const NSInteger) kGCKMediaCommandSetVolume |
A flag (bitmask) indicating that a media item's audio volume can be changed.
- (GCK_EXTERN const NSInteger) kGCKMediaCommandSkipBackward |
A flag (bitmask) indicating that a media item supports skipping backward.
- (GCK_EXTERN const NSInteger) kGCKMediaCommandSkipForward |
A flag (bitmask) indicating that a media item supports skipping forward.
- (GCK_EXTERN const NSInteger) kGCKMediaCommandToggleMute |
A flag (bitmask) indicating that a media item's audio can be muted.
- (NSArray<NSNumber *>*) activeTrackIDs |
|
readnonatomicstrong |
The list of active track IDs.
The current ad playback status.
- Since
- 3.3
- (NSUInteger) currentItemID |
|
readnonatomicassign |
The ID of the current queue item, if any.
The current queue item, if any.
Any custom data that is associated with the media status.
- (GCKMediaPlayerIdleReason) idleReason |
|
readnonatomicassign |
The current idle reason.
This value is only meaningful if the player state is GCKMediaPlayerStateIdle.
- (NSUInteger) loadingItemID |
|
readnonatomicassign |
The ID of the item that is currently loading, if any.
- (NSInteger) mediaSessionID |
|
readnonatomicassign |
The current media session ID, if any; otherwise 0.
The next queue item, if any.
Gets the current stream playback rate.
This will be negative if the stream is seeking backwards, 0 if the stream is paused, 1 if the stream is playing normally, and some other positive value if the stream is seeking forwards.
- (GCKMediaPlayerState) playerState |
|
readnonatomicassign |
The current player state.
- (NSUInteger) preloadedItemID |
|
readnonatomicassign |
The ID of the item that is currently preloaded, if any.
- (BOOL) queueHasCurrentItem |
|
readnonatomicassign |
Whether there is a current item in the queue.
- (BOOL) queueHasLoadingItem |
|
readnonatomicassign |
Whether there is an item being preloaded in the queue.
- (BOOL) queueHasPreviousItem |
|
readnonatomicassign |
Whether there is an item before the currently playing item in the queue.
- (GCKMediaRepeatMode) queueRepeatMode |
|
readnonatomicassign |
The current queue repeat mode.
- (NSTimeInterval) streamPosition |
|
readnonatomicassign |
The current stream position, as an NSTimeInterval from the start of the stream.
The video information, if any.
- Since
- 3.3
The documentation for this class was generated from the following file: