Package org.gstreamer.message

Examples of org.gstreamer.message.DurationMessage


        Message msg = GstMessageAPI.GSTMESSAGE_API.gst_message_new_duration(fakesink, Format.TIME, DURATION);
        assertTrue("gst_message_new_duration did not return an instance of DurationMessage", msg instanceof DurationMessage);
    }
    @Test public void DurationMessage_getDuration() {
        Element fakesink = ElementFactory.make("fakesink", "sink");
        DurationMessage msg = (DurationMessage)GstMessageAPI.GSTMESSAGE_API.gst_message_new_duration(fakesink, Format.TIME, DURATION);
        assertEquals("Wrong duration in message", DURATION, msg.getDuration());
    }
View Full Code Here


                signalFired.set(true);
                signalMessage.set(msg);
                pipe.quit();
            }
        });
        GstElementAPI.GSTELEMENT_API.gst_element_post_message(pipe.src, new DurationMessage(pipe.src, Format.TIME, DURATION));
        pipe.play().run();
        Message msg = signalMessage.get();
        assertNotNull("No message available on bus", msg);
        assertEquals("Wrong message type", MessageType.DURATION, msg.getType());
        assertTrue("Message not instance of EOSMessage", msg instanceof DurationMessage);
View Full Code Here

TOP

Related Classes of org.gstreamer.message.DurationMessage

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.