android.media.MediaExtractor.unselectTrack()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中android.media.MediaExtractor.unselectTrack()方法的一些代码示例,展示了MediaExtractor.unselectTrack()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MediaExtractor.unselectTrack()方法的具体详情如下:
包路径:android.media.MediaExtractor
类名称:MediaExtractor
方法名:unselectTrack

MediaExtractor.unselectTrack介绍

暂无

代码示例

代码示例来源:origin: saki4510t/libcommon

public void restart() {
  if (DEBUG) Log.v(TAG, "restart:");
  if (mState == STATE_WAIT) {
    synchronized (mSync) {
      mMediaExtractor.unselectTrack(mTrackIndex);
      mMediaExtractor.selectTrack(mTrackIndex);
      mState = STATE_PLAYING;
      mSync.notifyAll();
    }
  }
}

代码示例来源:origin: bitmovin/bitcodin-android-demo

@Override
public void disable(int track) {
 Assertions.checkState(prepared);
 Assertions.checkState(trackStates[track] != TRACK_STATE_DISABLED);
 extractor.unselectTrack(track);
 pendingDiscontinuities[track] = false;
 trackStates[track] = TRACK_STATE_DISABLED;
}

代码示例来源:origin: googlesamples/android-BasicMediaDecoder

mExtractor.unselectTrack(i);

代码示例来源:origin: windrunnerlihuan/DogCamera

mediaExtractor.advance();
mediaExtractor.unselectTrack(videoTrackIndex);
  mediaExtractor.advance();
mediaExtractor.unselectTrack(audioTrackIndex);

代码示例来源:origin: lizhifeng-sky/VideoEdit

if (sampleSize < 0) {
  mediaExtractor.unselectTrack(sourceVTrack);
  break;
  mediaExtractor.unselectTrack(sourceVTrack);
  break;
int sampleSize = mediaExtractor.readSampleData(inputBuffer, 0);
if (sampleSize < 0) {
  mediaExtractor.unselectTrack(sourceATrack);
  break;
    + ";presentationTimeUs is " + presentationTimeUs);
if ((clipDuration != 0) && (presentationTimeUs > (clipPoint + clipDuration))) {
  mediaExtractor.unselectTrack(sourceATrack);
  break;

代码示例来源:origin: zolad/VideoSlimmer

extractor.unselectTrack(videoIndex);

代码示例来源:origin: LLhon/Android-Video-Editor

extractor.unselectTrack(videoIndex);

代码示例来源:origin: sealtalk/sealtalk-android

extractor.unselectTrack(i);

代码示例来源:origin: tangpeng/VideoCompressor

extractor.unselectTrack(trackIndex);
return startTime;

代码示例来源:origin: LLhon/Android-Video-Editor

extractor.unselectTrack(trackIndex);
return startTime;

代码示例来源:origin: RudreshJR/VideoCompression

extractor.unselectTrack(videoIndex);

代码示例来源:origin: RudreshJR/VideoCompression

extractor.unselectTrack(trackIndex);
return startTime;

代码示例来源:origin: tangpeng/VideoCompressor

extractor.unselectTrack(videoIndex);

代码示例来源:origin: zolad/VideoSlimmer

extractor.unselectTrack(trackIndex);
return startTime;

代码示例来源:origin: lizhifeng-sky/VideoEdit

sampleTime = Math.abs(thirdTime - secondTime);
videoExtractor.unselectTrack(videoTrackIndex);
videoExtractor.selectTrack(videoTrackIndex);

代码示例来源:origin: aserbao/AndroidCamera

int readSampleSize = audioVideoExtractor.readSampleData(audioByteBuffer, 0); //检索当前编码的样本并将其存储在字节缓冲区中
if (readSampleSize < 0) { //如果没有可获取的样本则退出循环
  audioVideoExtractor.unselectTrack(mainAudioExtractorTrackIndex);
  break;
int readSampleSize = frameVideoExtractor.readSampleData(videoByteBuffer, 0); //检索当前编码的样本并将其存储在字节缓冲区中
if (readSampleSize < 0) { //如果没有可获取的样本则退出循环
  frameVideoExtractor.unselectTrack(frameExtractorTrackIndex);
  break;

代码示例来源:origin: zolad/VideoSlimmer

extractor.unselectTrack(trackIndex);
return startTime;

代码示例来源:origin: aserbao/AndroidCamera

mediaExtractor.unselectTrack(audioIndex);
mediaExtractor.selectTrack(audioIndex);
while (true) {

代码示例来源:origin: aserbao/AndroidCamera

mediaExtractor.unselectTrack(videoIndex);
mediaExtractor.selectTrack(videoIndex);
while (true) {

代码示例来源:origin: aserbao/AndroidCamera

sampleTime = Math.abs(thirdTime - secondTime);
videoExtractor.unselectTrack(videoTrackIndex);
videoExtractor.selectTrack(videoTrackIndex);

相关文章