com.google.android.exoplayer.metadata.id3.Id3Frame Java Examples

The following examples show how to use com.google.android.exoplayer.metadata.id3.Id3Frame. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PlayerActivity.java    From Android-Example-HLS-ExoPlayer with Apache License 2.0 6 votes vote down vote up
@Override
public void onId3Metadata(List<Id3Frame> id3Frames) {
    for (Id3Frame id3Frame : id3Frames) {
        if (id3Frame instanceof TxxxFrame) {
            TxxxFrame txxxFrame = (TxxxFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: description=%s, value=%s", txxxFrame.id,
                    txxxFrame.description, txxxFrame.value));
        } else if (id3Frame instanceof PrivFrame) {
            PrivFrame privFrame = (PrivFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: owner=%s", privFrame.id, privFrame.owner));
        } else if (id3Frame instanceof GeobFrame) {
            GeobFrame geobFrame = (GeobFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: mimeType=%s, filename=%s, description=%s",
                    geobFrame.id, geobFrame.mimeType, geobFrame.filename, geobFrame.description));
        } else {
            Log.i(TAG, String.format("ID3 TimedMetadata %s", id3Frame.id));
        }
    }
}
 
Example #2
Source File: ExoplayerWrapper.java    From google-media-framework-android with Apache License 2.0 5 votes vote down vote up
MetadataTrackRenderer.MetadataRenderer<List<Id3Frame>>
getId3MetadataRenderer() {
  return new MetadataTrackRenderer.MetadataRenderer<List<Id3Frame>>() {
    @Override
    public void onMetadata(List<Id3Frame> metadata) {
      if (id3MetadataListener != null) {
        id3MetadataListener.onId3Metadata(metadata);
      }
    }
  };
}
 
Example #3
Source File: VideoPlayerActivity.java    From droidkaigi2016 with Apache License 2.0 5 votes vote down vote up
@Override
public void onId3Metadata(List<Id3Frame> id3Frames) {
    for (Id3Frame id3Frame : id3Frames) {
        if (id3Frame instanceof TxxxFrame) {
            TxxxFrame txxxFrame = (TxxxFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: description=%s, value=%s", txxxFrame.id,
                    txxxFrame.description, txxxFrame.value));
        } else if (id3Frame instanceof PrivFrame) {
            PrivFrame privFrame = (PrivFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: owner=%s", privFrame.id, privFrame.owner));
        } else if (id3Frame instanceof GeobFrame) {
            GeobFrame geobFrame = (GeobFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: mimeType=%s, filename=%s, description=%s",
                    geobFrame.id, geobFrame.mimeType, geobFrame.filename, geobFrame.description));
        } else if (id3Frame instanceof ApicFrame) {
            ApicFrame apicFrame = (ApicFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: mimeType=%s, description=%s",
                    apicFrame.id, apicFrame.mimeType, apicFrame.description));
        } else if (id3Frame instanceof TextInformationFrame) {
            TextInformationFrame textInformationFrame = (TextInformationFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: description=%s", textInformationFrame.id,
                    textInformationFrame.description));
        } else {
            Log.i(TAG, String.format("ID3 TimedMetadata %s", id3Frame.id));
        }
    }
}
 
Example #4
Source File: VideoPlayerActivity.java    From droidkaigi2016 with Apache License 2.0 5 votes vote down vote up
@Override
public void onId3Metadata(List<Id3Frame> id3Frames) {
    for (Id3Frame id3Frame : id3Frames) {
        if (id3Frame instanceof TxxxFrame) {
            TxxxFrame txxxFrame = (TxxxFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: description=%s, value=%s", txxxFrame.id,
                    txxxFrame.description, txxxFrame.value));
        } else if (id3Frame instanceof PrivFrame) {
            PrivFrame privFrame = (PrivFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: owner=%s", privFrame.id, privFrame.owner));
        } else if (id3Frame instanceof GeobFrame) {
            GeobFrame geobFrame = (GeobFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: mimeType=%s, filename=%s, description=%s",
                    geobFrame.id, geobFrame.mimeType, geobFrame.filename, geobFrame.description));
        } else if (id3Frame instanceof ApicFrame) {
            ApicFrame apicFrame = (ApicFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: mimeType=%s, description=%s",
                    apicFrame.id, apicFrame.mimeType, apicFrame.description));
        } else if (id3Frame instanceof TextInformationFrame) {
            TextInformationFrame textInformationFrame = (TextInformationFrame) id3Frame;
            Log.i(TAG, String.format("ID3 TimedMetadata %s: description=%s", textInformationFrame.id,
                    textInformationFrame.description));
        } else {
            Log.i(TAG, String.format("ID3 TimedMetadata %s", id3Frame.id));
        }
    }
}
 
Example #5
Source File: EventProxy.java    From exoplayer-textureview with Apache License 2.0 5 votes vote down vote up
/** MetadataTrackRenderer.MetadataRenderer */
@Override
public void onMetadata(List<Id3Frame> id3Frames) {
    if (id3MetadataListener != null && !player.isDisabledTrack(Player.TYPE_METADATA)) {
        id3MetadataListener.onId3Metadata(id3Frames);
    }
}
 
Example #6
Source File: DemoPlayer.java    From AndroidTvDemo with Apache License 2.0 4 votes vote down vote up
@Override
public void onMetadata(List<Id3Frame> id3Frames) {
  if (id3MetadataListener != null && getSelectedTrack(TYPE_METADATA) != TRACK_DISABLED) {
    id3MetadataListener.onId3Metadata(id3Frames);
  }
}
 
Example #7
Source File: ExoplayerWrapper.java    From google-media-framework-android with Apache License 2.0 4 votes vote down vote up
@Override
public void onMetadata(List<Id3Frame> metadata) {
  if (id3MetadataListener != null && getSelectedTrack(TYPE_METADATA) != TRACK_DISABLED) {
    id3MetadataListener.onId3Metadata(metadata);
  }
}
 
Example #8
Source File: DemoPlayer.java    From androidtv-sample-inputs with Apache License 2.0 4 votes vote down vote up
@Override
public void onMetadata(List<Id3Frame> id3Frames) {
    if (id3MetadataListener != null && getSelectedTrack(TYPE_METADATA) != TRACK_DISABLED) {
        id3MetadataListener.onId3Metadata(id3Frames);
    }
}
 
Example #9
Source File: DemoPlayer.java    From droidkaigi2016 with Apache License 2.0 4 votes vote down vote up
@Override
public void onMetadata(List<Id3Frame> id3Frames) {
  if (id3MetadataListener != null && getSelectedTrack(TYPE_METADATA) != TRACK_DISABLED) {
    id3MetadataListener.onId3Metadata(id3Frames);
  }
}
 
Example #10
Source File: DemoPlayer.java    From Android-Example-HLS-ExoPlayer with Apache License 2.0 4 votes vote down vote up
@Override
public void onMetadata(List<Id3Frame> id3Frames) {
  if (id3MetadataListener != null && getSelectedTrack(TYPE_METADATA) != TRACK_DISABLED) {
    id3MetadataListener.onId3Metadata(id3Frames);
  }
}
 
Example #11
Source File: DemoPlayer.java    From droidkaigi2016 with Apache License 2.0 4 votes vote down vote up
@Override
public void onMetadata(List<Id3Frame> id3Frames) {
  if (id3MetadataListener != null && getSelectedTrack(TYPE_METADATA) != TRACK_DISABLED) {
    id3MetadataListener.onId3Metadata(id3Frames);
  }
}
 
Example #12
Source File: DemoPlayer.java    From ShareBox with Apache License 2.0 4 votes vote down vote up
@Override
public void onMetadata(List<Id3Frame> id3Frames) {
  if (id3MetadataListener != null && getSelectedTrack(TYPE_METADATA) != TRACK_DISABLED) {
    id3MetadataListener.onId3Metadata(id3Frames);
  }
}
 
Example #13
Source File: EventProxy.java    From exoplayer-textureview with Apache License 2.0 votes vote down vote up
void onId3Metadata(List<Id3Frame> id3Frames); 
Example #14
Source File: DemoPlayer.java    From Android-Example-HLS-ExoPlayer with Apache License 2.0 votes vote down vote up
void onId3Metadata(List<Id3Frame> id3Frames); 
Example #15
Source File: DemoPlayer.java    From droidkaigi2016 with Apache License 2.0 votes vote down vote up
void onId3Metadata(List<Id3Frame> id3Frames); 
Example #16
Source File: DemoPlayer.java    From droidkaigi2016 with Apache License 2.0 votes vote down vote up
void onId3Metadata(List<Id3Frame> id3Frames); 
Example #17
Source File: DemoPlayer.java    From androidtv-sample-inputs with Apache License 2.0 votes vote down vote up
void onId3Metadata(List<Id3Frame> id3Frames); 
Example #18
Source File: ExoplayerWrapper.java    From google-media-framework-android with Apache License 2.0 votes vote down vote up
void onId3Metadata(List<Id3Frame> metadata); 
Example #19
Source File: DemoPlayer.java    From ShareBox with Apache License 2.0 votes vote down vote up
void onId3Metadata(List<Id3Frame> id3Frames); 
Example #20
Source File: DemoPlayer.java    From AndroidTvDemo with Apache License 2.0 votes vote down vote up
void onId3Metadata(List<Id3Frame> id3Frames);