Package uk.co.caprica.vlcj.binding.internal

Examples of uk.co.caprica.vlcj.binding.internal.libvlc_media_list_t


     */
    private MediaListItem newMediaListItem(libvlc_media_t mediaInstance) {
        String name = NativeString.getNativeString(libvlc, libvlc.libvlc_media_get_meta(mediaInstance, libvlc_meta_t.libvlc_meta_Title.intValue()));
        String mrl = NativeString.getNativeString(libvlc, libvlc.libvlc_media_get_mrl(mediaInstance));
        List<MediaListItem> subItems;
        libvlc_media_list_t subItemList = libvlc.libvlc_media_subitems(mediaInstance);
        if(subItemList != null) {
            try {
                libvlc.libvlc_media_list_lock(subItemList);
                subItems = new ArrayList<MediaListItem>();
                for(int i = 0; i < libvlc.libvlc_media_list_count(subItemList); i++) {
View Full Code Here


    @Override
    public MediaList subItemsMediaList() {
        Logger.debug("subItemsMediaList()");
        MediaList result;
        if(mediaInstance != null) {
            libvlc_media_list_t mediaListInstance = libvlc.libvlc_media_subitems(mediaInstance);
            result = new MediaList(libvlc, instance, mediaListInstance);
            libvlc.libvlc_media_list_release(mediaListInstance);
        }
        else {
            result = null;
View Full Code Here

     * @param subItemsHandler handler implementation
     * @return result
     */
    private <T> T handleSubItems(SubItemsHandler<T> subItemsHandler) {
        Logger.debug("handleSubItems()");
        libvlc_media_list_t subItemList = null;
        try {
            if(mediaInstance != null) {
                // Get the list of sub-items
                subItemList = libvlc.libvlc_media_subitems(mediaInstance);
                Logger.debug("subItemList={}", subItemList);
View Full Code Here

     * be processed recursively to discover media items and their MRLs.
     *
     * @return media list
     */
    public final MediaList getMediaList() {
        libvlc_media_list_t mediaListInstance = libvlc.libvlc_media_discoverer_media_list(mediaDiscovererInstance);
        MediaList mediaList = new MediaList(libvlc, instance, mediaListInstance);
        libvlc.libvlc_media_list_release(mediaListInstance);
        return mediaList;
    }
View Full Code Here

TOP

Related Classes of uk.co.caprica.vlcj.binding.internal.libvlc_media_list_t

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.