本文整理汇总了Java中org.gstreamer.TagList类的典型用法代码示例。如果您正苦于以下问题:Java TagList类的具体用法?Java TagList怎么用?Java TagList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TagList类属于org.gstreamer包,在下文中一共展示了TagList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTagList
import org.gstreamer.TagList; //导入依赖的package包/类
/**
* Gets the {@link TagList} stored in this event.
* <p><b>Note:</b> The TagList is owned by the event, so it should only be
* accessed whilst holding a reference to this TagEvent.
*
* @return the TagList stored in this event.
*/
public TagList getTagList() {
Pointer[] taglist = new Pointer[1];
gst.gst_event_parse_tag(this, taglist);
TagList tl = new TagList(taglistInitializer(taglist[0], false, false));
ReferenceManager.addKeepAliveReference(tl, this);
return tl;
}
示例2: main
import org.gstreamer.TagList; //导入依赖的package包/类
public static void main(String[] args) {
//
// Initialize the gstreamer framework, and let it interpret any command
// line flags it is interested in.
//
args = Gst.init("AudioPlayerMetadata", args);
if (args.length < 1) {
System.out.println("Usage: AudioPlayer <file to play>");
System.exit(1);
}
//
// Create a PlayBin to play the media file. A PlayBin is a Pipeline that
// creates all the needed elements and automatically links them together.
//
PlayBin playbin = new PlayBin("AudioPlayer");
// Make sure a video window does not appear.
playbin.setVideoSink(ElementFactory.make("fakesink", "videosink"));
// Set the file to play
playbin.setInputFile(new File(args[0]));
// Listen for metadata (tags)
playbin.getBus().connect(new Bus.TAG() {
public void tagsFound(GstObject source, TagList tagList) {
for (String tagName : tagList.getTagNames()) {
// Each tag can have multiple values, so print them all.
for (Object tagData : tagList.getValues(tagName)) {
System.out.printf("[%s]=%s\n", tagName, tagData);
}
}
}
});
// Start the pipeline playing
playbin.play();
Gst.main();
// Clean up (gstreamer requires elements to be in State.NULL before disposal)
playbin.stop();
}
示例3: getTagList
import org.gstreamer.TagList; //导入依赖的package包/类
/**
* Gets the list of tags contained in this message.
*
* @return the list of tags in this message.
*/
public TagList getTagList() {
PointerByReference list = new PointerByReference();
gst.gst_message_parse_tag(this, list);
return objectFor(list.getValue(), TagList.class, false, true);
}
示例4: TagMessage
import org.gstreamer.TagList; //导入依赖的package包/类
/**
* Creates a new Buffering message.
* @param src The object originating the message.
* @param tagList the tag list for this message.
* <p>
* <b> Note: </b> the message takes ownership of the taglist, so do not use
* it again after adding it to this message.
*/
public TagMessage(GstObject src, TagList tagList) {
this(initializer(gst.ptr_gst_message_new_tag(src, tagList)));
}
示例5: TagEvent
import org.gstreamer.TagList; //导入依赖的package包/类
/**
* Creates a new TagEvent.
* <p><b>Note:</b> This constructor takes ownership of the TagList. Attempts to
* access the TagList after passing it to this constructor will throw an exception.
*
* @param taglist the taglist to transmit with the event.
*/
public TagEvent(TagList taglist) {
this(initializer(gst.ptr_gst_event_new_tag(taglist)));
}
示例6: ptr_gst_message_new_tag
import org.gstreamer.TagList; //导入依赖的package包/类
Pointer ptr_gst_message_new_tag(GstObject src, @Invalidate TagList tag_list);
示例7: gst_message_new_tag
import org.gstreamer.TagList; //导入依赖的package包/类
@CallerOwnsReturn Message gst_message_new_tag(GstObject src, @Invalidate TagList tag_list);
示例8: gst_tag_list_add
import org.gstreamer.TagList; //导入依赖的package包/类
void gst_tag_list_add(TagList list, TagMergeMode mode, String tag, Object... tags);
示例9: gst_tag_list_copy
import org.gstreamer.TagList; //导入依赖的package包/类
@CallerOwnsReturn TagList gst_tag_list_copy(TagList list);
示例10: gst_tag_list_is_empty
import org.gstreamer.TagList; //导入依赖的package包/类
boolean gst_tag_list_is_empty(TagList list);
示例11: gst_tag_list_insert
import org.gstreamer.TagList; //导入依赖的package包/类
void gst_tag_list_insert(TagList into, TagList from, TagMergeMode mode);
示例12: gst_tag_list_merge
import org.gstreamer.TagList; //导入依赖的package包/类
@CallerOwnsReturn TagList gst_tag_list_merge(TagList list1, TagList list2, TagMergeMode mode);
示例13: gst_tag_list_get_tag_size
import org.gstreamer.TagList; //导入依赖的package包/类
int gst_tag_list_get_tag_size(TagList list, String tag);
示例14: gst_tag_list_remove_tag
import org.gstreamer.TagList; //导入依赖的package包/类
void gst_tag_list_remove_tag(TagList list, TagList tag);
示例15: gst_tag_list_foreach
import org.gstreamer.TagList; //导入依赖的package包/类
void gst_tag_list_foreach(TagList list, TagForeachFunc func, Pointer user_data);