app/src/main/java/im/ene/toro/sample/custom/LoopingExoPlayerViewHelper.java
@Override public void initialize(@Nullable PlaybackInfo playbackInfo) {
    if (counter.getAndIncrement() == 0) { // prevent the multiple time init
      this.helper.addEventListener(internalListener);
      try {
        this.helper.prepare(mediaSourceBuilder);
      } catch (ParserException e) {
        e.printStackTrace();
      }
    }

    this.helper.setPlaybackInfo(playbackInfo);
  }
/**
   * {@inheritDoc}
   *
   * @param playbackInfo the initial playback info. {@code null} if no such info available.
   */
@param playbackInfo the initial playback info.  null if no such info available.
@param playbackInfo the initial playback info . null if no such info available .
@Override public void initialize(@Nullable PlaybackInfo playbackInfo) {
    if (counter.getAndIncrement() == 0) { 
      this.helper.addEventListener(internalListener);
      try {
        this.helper.prepare(mediaSourceBuilder);
      } catch (ParserException e) {
        e.printStackTrace();
      }
    }
    this.helper.setPlaybackInfo(playbackInfo);
  }
@ Override public void initialize ( @ Nullable PlaybackInfo playbackInfo ) { if ( counter . getAndIncrement ( ) == 0 ) { this . helper . addEventListener ( internalListener ) ; try { this . helper . prepare ( mediaSourceBuilder ) ; } catch ( ParserException e ) { e . printStackTrace ( ) ; } } this . helper . setPlaybackInfo ( playbackInfo ) ; }
{@inheritDoc}
 @param playbackInfo the initial playback info.
{ @inheritDoc } @param playbackInfo the initial playback info .
// prevent the multiple time init