Tabnine Logo
MetadataTrackRenderer
Code IndexAdd Tabnine to your IDE (free)

How to use
MetadataTrackRenderer
in
com.google.android.exoplayer.metadata

Best Java code snippets using com.google.android.exoplayer.metadata.MetadataTrackRenderer (Showing top 11 results out of 315)

origin: bitmovin/bitcodin-android-demo

@Override
protected void doSomeWork(long positionUs, long elapsedRealtimeUs) throws ExoPlaybackException {
 continueBufferingSource(positionUs);
 if (!inputStreamEnded && pendingMetadata == null) {
  int result = readSource(positionUs, formatHolder, sampleHolder, false);
  if (result == SampleSource.SAMPLE_READ) {
   pendingMetadataTimestamp = sampleHolder.timeUs;
   try {
    pendingMetadata = metadataParser.parse(sampleHolder.data.array(), sampleHolder.size);
   } catch (IOException e) {
    throw new ExoPlaybackException(e);
   }
   sampleHolder.data.clear();
  } else if (result == SampleSource.END_OF_STREAM) {
   inputStreamEnded = true;
  }
 }
 if (pendingMetadata != null && pendingMetadataTimestamp <= positionUs) {
  invokeRenderer(pendingMetadata);
  pendingMetadata = null;
 }
}
origin: bitmovin/bitcodin-android-demo

@SuppressWarnings("unchecked")
@Override
public boolean handleMessage(Message msg) {
 switch (msg.what) {
  case MSG_INVOKE_RENDERER:
   invokeRendererInternal((T) msg.obj);
   return true;
 }
 return false;
}
origin: wanliyang1990/WliveTV

MediaCodecAudioTrackRenderer audioRenderer = new MediaCodecAudioTrackRenderer(sampleSource,
  null, true, player.getMainHandler(), player, AudioCapabilities.getCapabilities(context));
MetadataTrackRenderer<Map<String, Object>> id3Renderer = new MetadataTrackRenderer<>(
  sampleSource, new Id3Parser(), player, mainHandler.getLooper());
Eia608TrackRenderer closedCaptionRenderer = new Eia608TrackRenderer(sampleSource, player,
origin: bitmovin/bitcodin-android-demo

MediaCodecAudioTrackRenderer audioRenderer = new MediaCodecAudioTrackRenderer(sampleSource,
  null, true, player.getMainHandler(), player, AudioCapabilities.getCapabilities(context));
MetadataTrackRenderer<Map<String, Object>> id3Renderer = new MetadataTrackRenderer<>(
  sampleSource, new Id3Parser(), player, mainHandler.getLooper());
Eia608TrackRenderer closedCaptionRenderer = new Eia608TrackRenderer(sampleSource, player,
origin: fire3/sailorcast

  MediaCodecSelector.DEFAULT, null, true, player.getMainHandler(), player,
  AudioCapabilities.getCapabilities(context), AudioManager.STREAM_MUSIC);
MetadataTrackRenderer<Map<String, Object>> id3Renderer = new MetadataTrackRenderer<>(
  sampleSource, new Id3Parser(), player, mainHandler.getLooper());
origin: bitmovin/bitcodin-android-demo

private void invokeRenderer(T metadata) {
 if (metadataHandler != null) {
  metadataHandler.obtainMessage(MSG_INVOKE_RENDERER, metadata).sendToTarget();
 } else {
  invokeRendererInternal(metadata);
 }
}
origin: Dawish/ijkplayer-android-demo

  sampleSource, MediaCodecSelector.DEFAULT, MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT,
  5000, mainHandler, player, 50);
MetadataTrackRenderer<List<Id3Frame>> id3Renderer = new MetadataTrackRenderer<>(
  sampleSource, new Id3Parser(), player, mainHandler.getLooper());
origin: googlesamples/androidtv-sample-inputs

    sampleSource, MediaCodecSelector.DEFAULT, null, true, player.getMainHandler(),
    player, AudioCapabilities.getCapabilities(context), AudioManager.STREAM_MUSIC);
MetadataTrackRenderer<List<Id3Frame>> id3Renderer = new MetadataTrackRenderer<>(
    sampleSource, new Id3Parser(), player, mainHandler.getLooper());
origin: Dawish/BriskTVLauncher

  sampleSource, MediaCodecSelector.DEFAULT, MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT,
  5000, mainHandler, player, 50);
MetadataTrackRenderer<List<Id3Frame>> id3Renderer = new MetadataTrackRenderer<>(
  sampleSource, new Id3Parser(), player, mainHandler.getLooper());
origin: Dreamxiaoxuan/AndroidTvDemo

  sampleSource, MediaCodecSelector.DEFAULT, MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT,
  5000, mainHandler, player, 50);
MetadataTrackRenderer<List<Id3Frame>> id3Renderer = new MetadataTrackRenderer<>(
  sampleSource, new Id3Parser(), player, mainHandler.getLooper());
origin: satorufujiwara/exoplayer-textureview

    sampleSource, MediaCodecSelector.DEFAULT,
    MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT, 5000, handler, eventProxy, 50);
MetadataTrackRenderer<List<Id3Frame>> id3Renderer = new MetadataTrackRenderer<>(
    sampleSource, new Id3Parser(), eventProxy, handler.getLooper());
com.google.android.exoplayer.metadataMetadataTrackRenderer

Javadoc

A TrackRenderer for metadata embedded in a media stream.

Most used methods

  • <init>
  • continueBufferingSource
  • invokeRenderer
  • invokeRendererInternal
  • readSource
  • seekToInternal

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now