Package org.gstreamer.message

Examples of org.gstreamer.message.SegmentDoneMessage$API


   * Example test method
   */

  @Test
  public void simple() {
    _stem_ impl = new _stem_Impl();
   
    impl.say("Hello World");
  }
View Full Code Here


        assertTrue("gst_message_new_segment_done did not return an instance of SegmentDoneMessage",
                msg instanceof SegmentDoneMessage);
    }
    @Test public void constructSegmentDone() {
        Element src = ElementFactory.make("fakesrc", "src");
        new SegmentDoneMessage(src, Format.TIME, 0xdeadbeef);
    }
View Full Code Here

        Element src = ElementFactory.make("fakesrc", "src");
        new SegmentDoneMessage(src, Format.TIME, 0xdeadbeef);
    }
    @Test public void parseSegmentDone() {
        Element src = ElementFactory.make("fakesrc", "src");
        SegmentDoneMessage msg = (SegmentDoneMessage) GstMessageAPI.GSTMESSAGE_API.gst_message_new_segment_done(src, Format.TIME, 0xdeadbeef);
        assertEquals("Wrong format", Format.TIME, msg.getFormat());
        assertEquals("Wrong position", 0xdeadbeef, msg.getPosition());
    }
View Full Code Here

                pipe.quit();
            }
        });
        final int POSITION = 0xdeadbeef;
        GstElementAPI.GSTELEMENT_API.gst_element_post_message(pipe.src,
                new SegmentDoneMessage(pipe.src, Format.TIME, POSITION));
        pipe.run();
        Message msg = signalMessage.get();
        assertNotNull("No message available on bus", msg);
        assertEquals("Wrong message type", MessageType.SEGMENT_DONE, msg.getType());
        SegmentDoneMessage smsg = (SegmentDoneMessage) msg;
        assertEquals("Wrong format", Format.TIME, smsg.getFormat());
        assertEquals("Wrong position", POSITION, smsg.getPosition());
        pipe.dispose();
    }
View Full Code Here

TOP

Related Classes of org.gstreamer.message.SegmentDoneMessage$API

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.