PTMediaSelectionOption Class Reference
| Inherits from | NSObject |
| Declared in | PTMediaSelectionOption.h |
Overview
PTMediaSelectionOption class represents an audiovisual media resource to accommodate different language preferences, accessibility requirements or custom application configurations There are 2 possible types of PTMediaSelectionOption: Subtitles and Alternate Audio.
Tasks
Properties
-
optionIdReturns the id of the option
property -
titleTitle of the media option.
property -
localeIndicates the locale of the media option.
property -
forcedReturns YES if the option is of type forced. Forced atribute only applies to PTMediaSelectionOption of type PTMediaSelectionOptionTypeSubtitle Forced options are automatically selected by the player if the locale is the current language.
property -
selectedReturns YES if the option is currently selected.
property -
isDefaultReturns YES if the option is the default for the current item.
property -
typeReturns the type of the media option.
property
Constant media option
-
+ defaultOptionReturns a constant that the PTMediaPlayerItem understands for selecting its current default option. THIS IS NOT THE DEFAULT OPTION ITESELF.
-
+ emptyOptionReturns a constant that the PTMediaPlayerItem understands for selecting none option. For type PTMediaSelectionOptionTypeSubtitle the empty option is no subtitles track at all (not even forced). For type PTMediaSelectionOptionTypeAudio the empty option is the audio stream embeded in the video stream.
Properties
forced
Returns YES if the option is of type forced. Forced atribute only applies to PTMediaSelectionOption of type PTMediaSelectionOptionTypeSubtitle Forced options are automatically selected by the player if the locale is the current language.
@property (readonly, assign) BOOL forcedDiscussion
Returns YES if the option is of type forced. Forced atribute only applies to PTMediaSelectionOption of type PTMediaSelectionOptionTypeSubtitle Forced options are automatically selected by the player if the locale is the current language.
Declared In
PTMediaSelectionOption.hisDefault
Returns YES if the option is the default for the current item.
@property (readonly, assign) BOOL isDefaultDiscussion
Returns YES if the option is the default for the current item.
Declared In
PTMediaSelectionOption.hlocale
Indicates the locale of the media option.
@property (readonly, retain) NSLocale *localeDiscussion
Indicates the locale of the media option.
Declared In
PTMediaSelectionOption.hoptionId
Returns the id of the option
@property (readonly, retain) NSString *optionIdDiscussion
Returns the id of the option
Declared In
PTMediaSelectionOption.hselected
Returns YES if the option is currently selected.
@property (readonly, assign) BOOL selectedDiscussion
Returns YES if the option is currently selected.
Declared In
PTMediaSelectionOption.hClass Methods
defaultOption
Returns a constant that the PTMediaPlayerItem understands for selecting its current default option. THIS IS NOT THE DEFAULT OPTION ITESELF.
+ (PTMediaSelectionOption *)defaultOptionDiscussion
Returns a constant that the PTMediaPlayerItem understands for selecting its current default option. THIS IS NOT THE DEFAULT OPTION ITESELF.
Declared In
PTMediaSelectionOption.hemptyOption
Returns a constant that the PTMediaPlayerItem understands for selecting none option. For type PTMediaSelectionOptionTypeSubtitle the empty option is no subtitles track at all (not even forced). For type PTMediaSelectionOptionTypeAudio the empty option is the audio stream embeded in the video stream.
+ (PTMediaSelectionOption *)emptyOptionDiscussion
Returns a constant that the PTMediaPlayerItem understands for selecting none option. For type PTMediaSelectionOptionTypeSubtitle the empty option is no subtitles track at all (not even forced). For type PTMediaSelectionOptionTypeAudio the empty option is the audio stream embeded in the video stream.
Declared In
PTMediaSelectionOption.h