Package org.gstreamer.message

Examples of org.gstreamer.message.BufferingMessage$API


   * Example test method
   */

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


        Message msg = GstMessageAPI.GSTMESSAGE_API.gst_message_new_buffering(fakesink, 55);
        assertTrue("gst_message_new_eos did not return an instance of BufferingMessage", msg instanceof BufferingMessage);
    }
    @Test public void BufferingMessage_getPercent() {
        Element fakesink = ElementFactory.make("fakesink", "sink");
        BufferingMessage msg = (BufferingMessage) GstMessageAPI.GSTMESSAGE_API.gst_message_new_buffering(fakesink, 55);
        assertEquals("Wrong source in message", 55, msg.getPercent());
    }
View Full Code Here

                signalMessage.set(msg);
                pipe.quit();
            }
        });
        final int PERCENT = 55;
        GstElementAPI.GSTELEMENT_API.gst_element_post_message(pipe.sink, new BufferingMessage(pipe.src, PERCENT));
        pipe.run();
        Message msg = signalMessage.get();
        assertNotNull("No message available on bus", msg);
        assertEquals("Wrong message type", MessageType.BUFFERING, msg.getType());
        assertTrue("Message not instance of BufferingMessage", msg instanceof BufferingMessage);
View Full Code Here

TOP

Related Classes of org.gstreamer.message.BufferingMessage$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.