Package org.gstreamer.lowlevel.GstAPI

Examples of org.gstreamer.lowlevel.GstAPI.GstCallback


     * will contain the new desired position in the stream expressed in the unit
     * set with the "format" property. After receiving the seek-data signal,
     * the application should push-buffers from the new position.
     */
    public void connect(final SEEK_DATA listener) {
        connect(SEEK_DATA.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public void callback(AppSrc elem, long position) {
                listener.seekData(elem, position);
            }
        });
View Full Code Here


     * Add a listener for the <code>underrun</code> signal on this MultiQueue
     *
     * @param listener The listener to be called.
     */
    public void connect(final UNDERRUN listener) {
        connect(UNDERRUN.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public void callback(MultiQueue mq) {
                listener.underrun(mq);
            }
        });
View Full Code Here

     * Add a listener for the <code>overrun</code> signal on this MultiQueue
     *
     * @param listener The listener to be called.
     */
    public void connect(final OVERRUN listener) {
        connect(OVERRUN.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public void callback(MultiQueue mq) {
                listener.overrun(mq);
            }
        });
View Full Code Here

     * Adds a listener for the <code>block</code> signal
     *
     * @param listener Listener to be called
     */
    public void connect(final BLOCK listener) {
        connect(BLOCK.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public long callback(InputSelector inputselector) {
                return listener.block(inputselector);
            }
        });
View Full Code Here

     * Adds a listener for the <code>switch</code> signal
     *
     * @param listener Listener to be called
     */
    public void connect(final SWITCH listener) {
        connect(SWITCH.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public void callback(InputSelector inputselector, Pad pad, long stop_time, long start_time) {
                listener.Switch(inputselector, pad, stop_time, start_time);
            }
        });
View Full Code Here

     * Add a listener for the <code>have-data</code> signal on this {@link Pad}
     *
     * @param listener The listener to be called when data is available.
     */
    public void connect(final HAVE_DATA listener) {
        connect(HAVE_DATA.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public boolean callback(Pad pad, Buffer buffer) {
                listener.haveData(pad, buffer);
                return true;
            }
View Full Code Here

     * Add a listener for the <code>linked</code> signal on this {@link Pad}
     *
     * @param listener The listener to be called when a peer {@link Pad} is linked.
     */
    public void connect(final LINKED listener) {
        connect(LINKED.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public boolean callback(Pad pad, Pad peer) {
                listener.linked(pad, peer);
                return true;
            }
View Full Code Here

     * Add a listener for the <code>unlinked</code> signal on this {@link Pad}
     *
     * @param listener The listener to be called when when a peer {@link Pad} is unlinked.
     */
    public void connect(final UNLINKED listener) {
        connect(UNLINKED.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public boolean callback(Pad pad, Pad peer) {
                listener.unlinked(pad, peer);
                return true;
            }
View Full Code Here

     *
     * @param listener The listener to be called when a peer {@link Pad} requests
     * to be linked to this one.
     */
    public void connect(final REQUEST_LINK listener) {
        connect(REQUEST_LINK.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public boolean callback(Pad pad, Pad peer) {
                listener.requestLink(pad, peer);
                return true;
            }
View Full Code Here

     *
     * @param listener Listener to be called when a new {@link Pad} is encountered
     * on the {@link Element}
     */
    public void connect(final NEW_DECODED_PAD listener) {
        connect(NEW_DECODED_PAD.class, listener, new GstCallback() {
            @SuppressWarnings("unused")
            public void callback(DecodeBin2 elem, Pad pad, boolean last) {
                listener.newDecodedPad(elem, pad, last);
            }
        });
View Full Code Here

TOP

Related Classes of org.gstreamer.lowlevel.GstAPI.GstCallback

Copyright © 2018 www.massapicom. 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.