Search in sources :

Example 6 with Id3Frame

use of com.google.android.exoplayer2.metadata.id3.Id3Frame in project LeafPic by HoraApps.

the class PlayerActivity method onId3Metadata.

// DemoPlayer.MetadataListener implementation
@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));
        }
    }
}
Also used : GeobFrame(com.google.android.exoplayer.metadata.id3.GeobFrame) TxxxFrame(com.google.android.exoplayer.metadata.id3.TxxxFrame) PrivFrame(com.google.android.exoplayer.metadata.id3.PrivFrame) Id3Frame(com.google.android.exoplayer.metadata.id3.Id3Frame)

Aggregations

Id3Frame (com.google.android.exoplayer.metadata.id3.Id3Frame)2 Metadata (com.google.android.exoplayer2.metadata.Metadata)2 CommentFrame (com.google.android.exoplayer2.metadata.id3.CommentFrame)2 Id3Frame (com.google.android.exoplayer2.metadata.id3.Id3Frame)2 TextInformationFrame (com.google.android.exoplayer2.metadata.id3.TextInformationFrame)2 ExoPlayerVideoDisplayComponent (com.brightcove.player.display.ExoPlayerVideoDisplayComponent)1 Event (com.brightcove.player.event.Event)1 EventListener (com.brightcove.player.event.EventListener)1 Video (com.brightcove.player.model.Video)1 WritableArray (com.facebook.react.bridge.WritableArray)1 WritableMap (com.facebook.react.bridge.WritableMap)1 GeobFrame (com.google.android.exoplayer.metadata.id3.GeobFrame)1 PrivFrame (com.google.android.exoplayer.metadata.id3.PrivFrame)1 TxxxFrame (com.google.android.exoplayer.metadata.id3.TxxxFrame)1 EventMessage (com.google.android.exoplayer2.metadata.emsg.EventMessage)1 ApicFrame (com.google.android.exoplayer2.metadata.id3.ApicFrame)1 GeobFrame (com.google.android.exoplayer2.metadata.id3.GeobFrame)1 PrivFrame (com.google.android.exoplayer2.metadata.id3.PrivFrame)1 TxxxFrame (com.google.android.exoplayer2.metadata.id3.TxxxFrame)1 UrlLinkFrame (com.google.android.exoplayer2.metadata.id3.UrlLinkFrame)1