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


Java MediaList.release方法代码示例

本文整理汇总了Java中org.videolan.libvlc.MediaList.release方法的典型用法代码示例。如果您正苦于以下问题:Java MediaList.release方法的具体用法?Java MediaList.release怎么用?Java MediaList.release使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.videolan.libvlc.MediaList的用法示例。


在下文中一共展示了MediaList.release方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: expand

import org.videolan.libvlc.MediaList; //导入方法依赖的package包/类
/**
 * Expand the current media.
 * @return the index of the media was expanded, and -1 if no media was expanded
 */
@MainThread
public int expand() {
    final Media media = mMediaPlayer.getMedia();
    if (media == null)
        return -1;
    final MediaList ml = media.subItems();
    media.release();
    int ret;

    if (ml.getCount() > 0) {
        mMediaList.remove(mCurrentIndex);
        for (int i = 0; i < ml.getCount(); ++i) {
            final Media child = ml.getMediaAt(i);
            child.parse();
            mMediaList.insert(mCurrentIndex, new MediaWrapper(child));
            child.release();
        }
        ret = 0;
    } else {
        ret = -1;
    }
    ml.release();
    return ret;
}
 
开发者ID:jiaZengShen,项目名称:vlc_android_win,代码行数:29,代码来源:PlaybackService.java

示例2: expand

import org.videolan.libvlc.MediaList; //导入方法依赖的package包/类
/**
 * Expand the current media.
 * @return the index of the media was expanded, and -1 if no media was expanded
 */
@MainThread
public int expand() {
    final Media media = mMediaPlayer.getMedia();
    if (media == null)
        return -1;
    final MediaList ml = media.subItems();
    media.release();
    int ret;

    if (ml.getCount() > 0) {
        mMediaList.remove(mCurrentIndex);
        for (int i = ml.getCount() - 1; i >= 0; --i) {
            final Media child = ml.getMediaAt(i);
            child.parse();
            mMediaList.insert(mCurrentIndex, new MediaWrapper(child));
            child.release();
        }
        ret = 0;
    } else {
        ret = -1;
    }
    ml.release();
    return ret;
}
 
开发者ID:hanhailong,项目名称:VCL-Android,代码行数:29,代码来源:PlaybackService.java

示例3: startMediaDiscoverer

import org.videolan.libvlc.MediaList; //导入方法依赖的package包/类
private void startMediaDiscoverer(String discovererName) {
    MediaDiscoverer md = new MediaDiscoverer(mLibVlc, discovererName);
    mMediaDiscoverers.add(md);
    final MediaList ml = md.getMediaList();
    ml.setEventListener(mDiscovererMediaListEventListener, mHandler);
    ml.release();
    md.start();
}
 
开发者ID:pedroSG94,项目名称:vlc-example-streamplayer,代码行数:9,代码来源:MediaBrowser.java

示例4: startMediaDiscoverer

import org.videolan.libvlc.MediaList; //导入方法依赖的package包/类
private void startMediaDiscoverer(String discovererName) {
    MediaDiscoverer md = new MediaDiscoverer(mLibVlc, discovererName);
    mMediaDiscoverers.add(md);
    final MediaList ml = md.getMediaList();
    ml.setEventListener(mDiscovererMediaListEventListener);
    ml.release();
    md.start();
}
 
开发者ID:PTCE,项目名称:popcorn-android,代码行数:9,代码来源:MediaBrowser.java


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