pad.link(audioPad);
}
}
});
Bus bus = pipe.getBus();
bus.connect(new Bus.TAG() {
public void tagsFound(GstObject source, TagList tagList) {
System.out.println("Got TAG event");
for (String tag : tagList.getTagNames()) {
System.out.println("Tag " + tag + " = " + tagList.getValue(tag, 0));
}
}
});
bus.connect(new Bus.ERROR() {
public void errorMessage(GstObject source, int code, String message) {
System.out.println("Error: code=" + code + " message=" + message);
}
});
bus.connect(new Bus.EOS() {
public void endOfStream(GstObject source) {
System.out.println("Got EOS!");
}