GCKMediaStatus Class

GCKMediaStatus Class Reference

Overview

A class that holds status information about some media.

Inherits NSObject. Implements <NSCopying>.

Instance Method Summary

(BOOL) 
Checks if there is an item after the currently playing item in the queue. More...
Designated initializer. More...
Checks if the stream supports a given control command. More...
(NSUInteger) 
Returns the number of items in the playback queue. More...
Returns the item at the specified index in the playback queue. More...
Returns the item with the given item ID in the playback queue. More...
(NSInteger) 
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. More...

Public Attributes

const NSInteger 
A flag (bitmask) indicating that a media item can be paused. More...
const NSInteger 
A flag (bitmask) indicating that a media item supports seeking. More...
const NSInteger 
A flag (bitmask) indicating that a media item's audio volume can be changed. More...
const NSInteger 
A flag (bitmask) indicating that a media item's audio can be muted. More...
const NSInteger 
A flag (bitmask) indicating that a media item supports skipping forward. More...
const NSInteger 
A flag (bitmask) indicating that a media item supports skipping backward. More...
const NSInteger 
A flag (bitmask) indicating that a media item supports moving to the next item in the queue. More...
const NSInteger 
A flag (bitmask) indicating that a media item supports moving to the previous item in the queue. More...

Property Summary

NSInteger 
The current media session ID, if any; otherwise 0. More...
The current player state. More...
BOOL 
Indicates whether the receiver is currently playing an ad. More...
The current idle reason. More...
float 
Gets the current stream playback rate. More...
The GCKMediaInformation for this item. More...
NSTimeInterval 
The current stream position, as an NSTimeInterval from the start of the stream. More...
float 
The stream's volume. More...
BOOL 
The stream's mute state. More...
The current queue repeat mode. More...
NSUInteger 
The ID of the current queue item, if any. More...
Whether there is a current item in the queue. More...
The current queue item, if any. More...
The next queue item, if any. More...
Whether there is an item before the currently playing item in the queue. More...
Whether there is an item being preloaded in the queue. More...
NSUInteger 
The ID of the item that is currently preloaded, if any. More...
NSUInteger 
The ID of the item that is currently loading, if any. More...
NSArray< NSNumber * > * 
The list of active track IDs. More...
The video information, if any. More...
id 
Any custom data that is associated with the media status. More...
The current ad playback status. More...

Method Detail

- (BOOL) queueHasNextItem

Checks if there is an item after the currently playing item in the queue.

- (instancetype) initWithSessionID: (NSInteger)  mediaSessionID
mediaInformation: ( GCKMediaInformation *__nullable)  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.

- (NSUInteger) queueItemCount

Returns the number of items in the playback queue.

- ( GCKMediaQueueItem *__nullable) queueItemAtIndex: (NSUInteger)  index

Returns the item at the specified index in the playback queue.

- ( GCKMediaQueueItem *__nullable) queueItemWithItemID: (NSUInteger)  itemID

Returns the item with the given item ID in the playback 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.

Member Data Documentation

- (const NSInteger) kGCKMediaCommandPause

A flag (bitmask) indicating that a media item can be paused.

- (const NSInteger) kGCKMediaCommandSeek

A flag (bitmask) indicating that a media item supports seeking.

- (const NSInteger) kGCKMediaCommandSetVolume

A flag (bitmask) indicating that a media item's audio volume can be changed.

- (const NSInteger) kGCKMediaCommandToggleMute

A flag (bitmask) indicating that a media item's audio can be muted.

- (const NSInteger) kGCKMediaCommandSkipForward

A flag (bitmask) indicating that a media item supports skipping forward.

- (const NSInteger) kGCKMediaCommandSkipBackward

A flag (bitmask) indicating that a media item supports skipping backward.

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

Property Detail

- (NSInteger) mediaSessionID
read nonatomic assign

The current media session ID, if any; otherwise 0.

- ( GCKMediaPlayerState ) playerState
read nonatomic assign

The current player state.

- (BOOL) playingAd
read nonatomic assign

Indicates whether the receiver is currently playing an ad.

Deprecated:
Use adBreakStatus instead.
- ( GCKMediaPlayerIdleReason ) idleReason
read nonatomic assign

The current idle reason.

This value is only meaningful if the player state is GCKMediaPlayerStateIdle.

- (float) playbackRate
read nonatomic assign

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 postive value if the stream is seeking forwards.

- ( GCKMediaInformation *) mediaInformation
read nonatomic strong

The GCKMediaInformation for this item.

- (NSTimeInterval) streamPosition
read nonatomic assign

The current stream position, as an NSTimeInterval from the start of the stream.

- (float) volume
read nonatomic assign

The stream's volume.

- (BOOL) isMuted
read nonatomic assign

The stream's mute state.

- ( GCKMediaRepeatMode ) queueRepeatMode
read nonatomic assign

The current queue repeat mode.

- (NSUInteger) currentItemID
read nonatomic assign

The ID of the current queue item, if any.

- (BOOL) queueHasCurrentItem
read nonatomic assign

Whether there is a current item in the queue.

- ( GCKMediaQueueItem *) currentQueueItem
read nonatomic assign

The current queue item, if any.

- ( GCKMediaQueueItem *) nextQueueItem
read nonatomic assign

The next queue item, if any.

- (BOOL) queueHasPreviousItem
read nonatomic assign

Whether there is an item before the currently playing item in the queue.

- (BOOL) queueHasLoadingItem
read nonatomic assign

Whether there is an item being preloaded in the queue.

- (NSUInteger) preloadedItemID
read nonatomic assign

The ID of the item that is currently preloaded, if any.

- (NSUInteger) loadingItemID
read nonatomic assign

The ID of the item that is currently loading, if any.

- (NSArray<NSNumber *>*) activeTrackIDs
read nonatomic strong

The list of active track IDs.

- ( GCKVideoInfo *) videoInfo
read nonatomic strong

The video information, if any.

Since
3.3
- (id) customData
read nonatomic strong

Any custom data that is associated with the media status.

- ( GCKAdBreakStatus *) adBreakStatus
read nonatomic strong

The current ad playback status.

Since
3.3
Create a Mobile Website
View Site in Mobile | Classic
Share by: