当前位置: 首页>>代码示例>>Java>>正文


Java TagList类代码示例

本文整理汇总了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;
}
 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:15,代码来源:TagEvent.java

示例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();
}
 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:44,代码来源:AudioPlayerMetadata.java

示例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);
}
 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:11,代码来源:TagMessage.java

示例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)));
}
 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:12,代码来源:TagMessage.java

示例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)));
}
 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:11,代码来源:TagEvent.java

示例6: ptr_gst_message_new_tag

import org.gstreamer.TagList; //导入依赖的package包/类
Pointer ptr_gst_message_new_tag(GstObject src, @Invalidate TagList tag_list); 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:2,代码来源:TagMessage.java

示例7: gst_message_new_tag

import org.gstreamer.TagList; //导入依赖的package包/类
@CallerOwnsReturn Message gst_message_new_tag(GstObject src, @Invalidate TagList tag_list); 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:2,代码来源:GstMessageAPI.java

示例8: gst_tag_list_add

import org.gstreamer.TagList; //导入依赖的package包/类
void gst_tag_list_add(TagList list, TagMergeMode mode, String tag, Object... tags); 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:2,代码来源:GstTagListAPI.java

示例9: gst_tag_list_copy

import org.gstreamer.TagList; //导入依赖的package包/类
@CallerOwnsReturn TagList gst_tag_list_copy(TagList list); 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:2,代码来源:GstTagListAPI.java

示例10: gst_tag_list_is_empty

import org.gstreamer.TagList; //导入依赖的package包/类
boolean gst_tag_list_is_empty(TagList list); 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:2,代码来源:GstTagListAPI.java

示例11: gst_tag_list_insert

import org.gstreamer.TagList; //导入依赖的package包/类
void gst_tag_list_insert(TagList into, TagList from, TagMergeMode mode); 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:2,代码来源:GstTagListAPI.java

示例12: gst_tag_list_merge

import org.gstreamer.TagList; //导入依赖的package包/类
@CallerOwnsReturn TagList gst_tag_list_merge(TagList list1, TagList list2, TagMergeMode mode); 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:2,代码来源:GstTagListAPI.java

示例13: gst_tag_list_get_tag_size

import org.gstreamer.TagList; //导入依赖的package包/类
int gst_tag_list_get_tag_size(TagList list, String tag); 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:2,代码来源:GstTagListAPI.java

示例14: gst_tag_list_remove_tag

import org.gstreamer.TagList; //导入依赖的package包/类
void gst_tag_list_remove_tag(TagList list, TagList tag); 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:2,代码来源:GstTagListAPI.java

示例15: gst_tag_list_foreach

import org.gstreamer.TagList; //导入依赖的package包/类
void gst_tag_list_foreach(TagList list, TagForeachFunc func, Pointer user_data); 
开发者ID:gstreamer-java,项目名称:gstreamer1.x-java,代码行数:2,代码来源:GstTagListAPI.java


注:本文中的org.gstreamer.TagList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。