// Copyright 2017 Google Inc. #import #import NS_ASSUME_NONNULL_BEGIN /** * A constant indicating credentials that have been received from the cloud. * * @since 4.1.1 */ GCK_EXTERN NSString *const kGCKCredentialsTypeCloud; /** * Options for loading media with GCKRemoteMediaClient. * * @since 4.0 */ GCK_EXPORT @interface GCKMediaLoadOptions : NSObject /** * Designated initializer. Initializes a GCKMediaLoadOptions with default values for all properties. */ - (instancetype)init; /** * Whether playback should start immediately. The default value is YES. */ @property(nonatomic, assign) BOOL autoplay; /** * The initial playback position. The default value is @ref kGCKInvalidTimeInterval, which indicates * a default playback position. */ @property(nonatomic, assign) NSTimeInterval playPosition; /** * The playback rate. The default value is 1. */ @property(nonatomic, assign) float playbackRate; /** * An array of integers specifying the active tracks. The default value is nil. */ @property(nonatomic, strong, nullable) NSArray *activeTrackIDs; /** * Custom application-specific data to pass along with the request. Must either be * an object that can be serialized to JSON using * NSJSONSerialization, or nil. */ @property(nonatomic, strong, nullable) id customData; /** * The user credentials for the media item being loaded. * * @since 4.1.1 */ @property(nonatomic, copy, nullable) NSString *credentials; /** * The type of user credentials specified in #GCKMediaLoadOptions::credentials. * * @since 4.1.1 */ @property(nonatomic, copy, nullable) NSString *credentialsType; @end NS_ASSUME_NONNULL_END