|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gstreamer.lowlevel.NativeValue
org.gstreamer.interfaces.GstInterface
org.gstreamer.interfaces.Tuner
public class Tuner
Interface for elements providing tuner operations
Nested Class Summary | |
---|---|
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 |
Nested classes/interfaces inherited from class org.gstreamer.interfaces.GstInterface |
---|
GstInterface.ListElementCreator<E> |
Field Summary |
---|
Fields inherited from class org.gstreamer.interfaces.GstInterface |
---|
element, handle |
Method Summary | |
---|---|
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 |
Methods inherited from class org.gstreamer.interfaces.GstInterface |
---|
getElement, nativeValue, objectList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final Tuner wrap(Element element)
Element
in a Tuner interface
element
- the element to use as a Tuner
public 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 find
public 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 find
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |