public interface DVBMediaSelectControl extends MediaSelectControl
MediaSelectControl allowing
the selection of different kinds of content in a running Player.
The extension is to allow the selection in a single operation of all the
media service components in a service without needing knowledge about which
media service components are present in that service.MediaSelectControl| Modifier and Type | Method and Description |
|---|---|
void |
add(Locator component,
StreamType type)
Adds a service component (for example, subtitles) to the presentation over-riding
the stream type signalled for the component.
|
void |
select(Locator[] components,
StreamType[] types)
Selects one or more service components for presentation over-riding the stream type signalled for
the component.
|
void |
select(Locator component,
StreamType type)
Selects a new service component for presentation over-riding the stream type signalled for the component.
|
void |
selectServiceMediaComponents(Locator l)
Selects for presentation the media service components from a service.
|
add, addMediaSelectListener, getCurrentSelection, remove, removeMediaSelectListener, replace, select, selectgetControlComponentvoid selectServiceMediaComponents(Locator l) throws InvalidLocatorException, InvalidServiceComponentException, InsufficientResourcesException
l - the locator for a serviceInvalidLocatorException - If the locator provided does not reference
a service.InvalidServiceComponentException - If the locator provided does not
reference a service which contains at least one media service componentInsufficientResourcesException - If the operation cannot be completed
due to a lack of system resources.void add(Locator component, StreamType type) throws InvalidLocatorException, InvalidServiceComponentException, InsufficientResourcesException, SecurityException
component - The locator representing an individual service component to add to the presentation.type - The stream type of the componentInvalidLocatorException - If the specified locator does not reference a selectable service component.InvalidServiceComponentException - If the addition of the service component would require resynchronization of the Player, if the service component is not part of the Service to which the MediaSelectControl is restricted, or if the service component must be presented in conjunction with another service component that is not part of the current presentation.InsufficientResourcesException - - If the operation cannot be completed due to a lack of system resources.SecurityException - - If the caller does not have MediaSelectPermission(component) permission.void select(Locator component, StreamType type) throws InvalidLocatorException, InvalidServiceComponentException, InsufficientResourcesException, SecurityException
component - A locator representing an individual service component to present.type - The stream type of the componentInvalidLocatorException - If the locator does not reference a selectable service component.InvalidServiceComponentException - If the specified service component is not part of the Service to which the MediaSelectControl is restricted, or if it cannot be presented alone.InsufficientResourcesException - If the operation cannot be completed due to a lack of system resources.SecurityException - If the caller does not have MediaSelectPermission(component) permission.void select(Locator[] components, StreamType[] types) throws InvalidLocatorException, InvalidServiceComponentException, InsufficientResourcesException, SecurityException
components - An array of locators representing a set of individual service components to present together.types - The stream type corresponding to each locatorInvalidLocatorException - If a locator provided does not reference a selectable service component.InvalidServiceComponentException - If a specified service component is not part of the Service to which the MediaSelectControl is restricted, if a specified service component must be presented in conjunction with another service component not contained in components, if the specified set of service components cannot be presented as a coherent whole, or if the service components are not all available simultaneously.InsufficientResourcesException - If the operation cannot be completed due to a lack of system resources.SecurityException - If the caller does not have MediaSelectPermission(components[i]) permission for any valid i.IllegalArgumentException - if the two arrays are not the same size.Copyright © 2012 code4tv.com. All Rights Reserved.