Examples of GstCallback


Examples of org.gstreamer.lowlevel.GstAPI.GstCallback

     * Add a listener for the <code>element-added</code> signal on this Bin
     *
     * @param listener The listener to be called when an {@link Element} is added.
     */
    public void connect(final ELEMENT_ADDED listener) {
        connect(ELEMENT_ADDED.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public void callback(Bin bin, Element elem) {
                listener.elementAdded(bin, elem);
            }
        });
View Full Code Here

Examples of org.gstreamer.lowlevel.GstAPI.GstCallback

     * Add a listener for the <code>element-removed</code> signal on this Bin
     *
     * @param listener The listener to be called when an {@link Element} is removed.
     */
    public void connect(final ELEMENT_REMOVED listener) {
        connect(ELEMENT_REMOVED.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public void callback(Bin bin, Element elem) {
                listener.elementRemoved(bin, elem);
            }
        });
View Full Code Here

Examples of org.gstreamer.lowlevel.GstAPI.GstCallback

     * Add a listener for the <code>do-latency</code> signal on this Bin
     *
     * @param listener The listener to be called when an {@link Element} is removed.
     */
    public void connect(final DO_LATENCY listener) {
        connect(DO_LATENCY.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public void callback(Bin bin) {
                listener.doLatency(bin);
            }
        });
View Full Code Here

Examples of org.gstreamer.lowlevel.GstAPI.GstCallback

     * Adds a listener for the <code>eos</code> signal.
     *
     * @param listener
     */
    public void connect(final EOS listener) {
        connect(EOS.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public void callback(AppSink elem) {
                listener.eos(elem);
            }
        });
View Full Code Here

Examples of org.gstreamer.lowlevel.GstAPI.GstCallback

     * buffer can be pulled without blocking.
     *
     * @param listener
     */
    public void connect(final NEW_PREROLL listener) {
        connect(NEW_PREROLL.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public void callback(AppSink elem) {
                listener.newPreroll(elem);
            }
        });
View Full Code Here

Examples of org.gstreamer.lowlevel.GstAPI.GstCallback

     * Add a listener for norm-changed messages.
     *
     * @param listener the listener to be called when the norm changes
     */
    public void connect(final NORM_CHANGED listener) {
        element.connect(NORM_CHANGED.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public boolean callback(Pointer tuner, TunerNorm norm) {
                listener.normChanged(Tuner.this, norm);
                return true;
            }
View Full Code Here

Examples of org.gstreamer.lowlevel.GstAPI.GstCallback

     * Add a listener for channel-changed messages.
     *
     * @param listener The listener to be called when the channel changes
     */
    public void connect(final CHANNEL_CHANGED listener) {
        element.connect(CHANNEL_CHANGED.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public boolean callback(Pointer tuner, Pointer channel) {
                listener.channelChanged(Tuner.this, channelFor(channel, false));
                return true;
            }
View Full Code Here

Examples of org.gstreamer.lowlevel.GstAPI.GstCallback

     * buffer can be pulled without blocking.
     *
     * @param listener
     */
    public void connect(final NEW_BUFFER listener) {
        connect(NEW_BUFFER.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public void callback(AppSink elem) {
                listener.newBuffer(elem);
            }
        });
View Full Code Here

Examples of org.gstreamer.lowlevel.GstAPI.GstCallback

     * Add a listener for frequency-changed messages.
     *
     * @param listener The listener to be called when the frequency changes
     */
    public void connect(final FREQUENCY_CHANGED listener) {
        element.connect(FREQUENCY_CHANGED.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public boolean callback(Pointer tuner, Pointer channel, long frequency) {
                listener.frequencyChanged(Tuner.this, channelFor(channel, false), frequency);
                return true;
            }
View Full Code Here

Examples of org.gstreamer.lowlevel.GstAPI.GstCallback

     * Add a listener for signal-changed messages.
     *
     * @param listener The listener to be called when the signal strength changes
     */
    public void connect(final SIGNAL_CHANGED listener) {
        element.connect(SIGNAL_CHANGED.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public boolean callback(Pointer tuner, Pointer channel, int signal) {
                listener.signalChanged(Tuner.this, channelFor(channel, false), signal);
                return true;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.