Examples of TagMessage


Examples of org.gstreamer.message.TagMessage

        final AtomicBoolean signalFired = new AtomicBoolean(false);
        //
        // Use a TagMessage, since it is the only type that doesn't get intercepted
        // by the pipeline
        //
        final Message message = new TagMessage(pipe.src, new TagList());
        pipe.getBus().connect(new Bus.MESSAGE() {

            public void busMessage(Bus bus, Message msg) {
                if (msg.equals(message)) {
                    signalFired.set(true);
View Full Code Here

Examples of org.gstreamer.message.TagMessage

    @Test public void TagMessage_getTagList() {
        Element src = ElementFactory.make("fakesrc", "src");
        TagList tl = new TagList();
        final String MAGIC = "fubar";
        GstTagListAPI.GSTTAGLIST_API.gst_tag_list_add(tl, TagMergeMode.APPEND, "artist", MAGIC);
        TagMessage msg = (TagMessage) GstMessageAPI.GSTMESSAGE_API.gst_message_new_tag(src, tl);
        tl = msg.getTagList();
        assertEquals("Wrong artist in tag list", MAGIC, tl.getString("artist", 0));
    }
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.