public class Tuner extends GstInterface
Modifier and Type | Class and Description |
---|---|
static interface |
Tuner.CHANNEL_CHANGED
Signal emitted when the channel on a tuner changes
|
static interface |
Tuner.FREQUENCY_CHANGED
Signal emitted when the frequency on a channel changes
|
static interface |
Tuner.NORM_CHANGED
Signal emitted when the norm on a tuner changes
|
static interface |
Tuner.SIGNAL_CHANGED
Signal emitted when the signal strength on a channel changes
|
GstInterface.ListElementCreator<E>
element, handle
Modifier and Type | Method and Description |
---|---|
void |
connect(Tuner.CHANNEL_CHANGED listener)
Add a listener for channel-changed messages.
|
void |
connect(Tuner.FREQUENCY_CHANGED listener)
Add a listener for frequency-changed messages.
|
void |
connect(Tuner.NORM_CHANGED listener)
Add a listener for norm-changed messages.
|
void |
connect(Tuner.SIGNAL_CHANGED listener)
Add a listener for signal-changed messages.
|
void |
disconnect(Tuner.CHANNEL_CHANGED listener)
Disconnect the listener for channel-changed messages.
|
void |
disconnect(Tuner.FREQUENCY_CHANGED listener)
Disconnect the listener for frequency-changed messages.
|
void |
disconnect(Tuner.NORM_CHANGED listener)
Disconnect the listener for norm-changed messages.
|
void |
disconnect(Tuner.SIGNAL_CHANGED listener)
Disconnect the listener for signal-changed messages.
|
TunerChannel |
getChannel()
Retrieves the current channel from the tuner.
|
TunerChannel |
getChannelByName(java.lang.String name)
Finds a channel with the specified name
|
java.util.List<TunerChannel> |
getChannelList()
Retrieves a list of channels (e.g.
|
TunerNorm |
getNorm()
Gets the current video norm from the given tuner object for the
currently selected channel.
|
TunerNorm |
getNormByName(java.lang.String name)
Finds a TunerNorm with the specified name
|
java.util.List<TunerNorm> |
getNormList()
Retrieves a list of available norms on the currently tuned channel.
|
void |
setChannel(TunerChannel channel)
Tunes this tuner to the given channel.
|
void |
setNorm(TunerNorm norm)
Changes the video norm on this tuner to the given norm
|
static Tuner |
wrap(Element element)
Wraps the
Element in a Tuner interface |
getElement, nativeValue, objectList
public static final Tuner wrap(Element element)
Element
in a Tuner interfaceelement
- the element to use as a Tunerpublic java.util.List<TunerChannel> getChannelList()
public java.util.List<TunerNorm> getNormList()
public void setChannel(TunerChannel channel)
channel
- the channel to tune topublic TunerChannel getChannel()
public TunerChannel getChannelByName(java.lang.String name)
name
- the name of the channel to findpublic void setNorm(TunerNorm norm)
norm
- the norm to use for the current channelpublic TunerNorm getNorm()
public TunerNorm getNormByName(java.lang.String name)
name
- the name of the norm to findpublic void connect(Tuner.NORM_CHANGED listener)
listener
- the listener to be called when the norm changespublic void disconnect(Tuner.NORM_CHANGED listener)
listener
- the listener that was registered to receive the message.public void connect(Tuner.CHANNEL_CHANGED listener)
listener
- The listener to be called when the channel changespublic void disconnect(Tuner.CHANNEL_CHANGED listener)
listener
- The listener that was registered to receive the message.public void connect(Tuner.FREQUENCY_CHANGED listener)
listener
- The listener to be called when the frequency changespublic void disconnect(Tuner.FREQUENCY_CHANGED listener)
listener
- The listener that was registered to receive the message.public void connect(Tuner.SIGNAL_CHANGED listener)
listener
- The listener to be called when the signal strength changespublic void disconnect(Tuner.SIGNAL_CHANGED listener)
listener
- The listener that was registered to receive the message.