Instance Method

selectMediaOption:inMediaSelectionGroup:

Selects the media option in the specified media selection group.

Declaration

- (void)selectMediaOption:(AVMediaSelectionOption *)mediaSelectionOption inMediaSelectionGroup:(AVMediaSelectionGroup *)mediaSelectionGroup;

Parameters

mediaSelectionOption

The media selection option to select.

mediaSelectionGroup

The media selection group containing the specified media selection option.

Discussion

This method selects the AVMediaSelectionOption in the specified AVMediaSelectionGroup and deselects all other options in that group. If the specified media selection option isn't a member of the specified media selection group, no change in state will be made. If the media selection group’s allowsEmptySelection property is set to YES, you can pass nil for mediaSelectionOption argument to deselect all media selection options in the group.