com.google.android.exoplayer2.source.ShuffleOrder.UnshuffledShuffleOrder Java Examples

The following examples show how to use com.google.android.exoplayer2.source.ShuffleOrder.UnshuffledShuffleOrder. 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: LoopingMediaSource.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
public LoopingTimeline(Timeline childTimeline, int loopCount) {
  super(/* isAtomic= */ false, new UnshuffledShuffleOrder(loopCount));
  this.childTimeline = childTimeline;
  childPeriodCount = childTimeline.getPeriodCount();
  childWindowCount = childTimeline.getWindowCount();
  this.loopCount = loopCount;
  if (childPeriodCount > 0) {
    Assertions.checkState(loopCount <= Integer.MAX_VALUE / childPeriodCount,
        "LoopingMediaSource contains too many periods");
  }
}
 
Example #2
Source File: LoopingMediaSource.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
public LoopingTimeline(Timeline childTimeline, int loopCount) {
  super(/* isAtomic= */ false, new UnshuffledShuffleOrder(loopCount));
  this.childTimeline = childTimeline;
  childPeriodCount = childTimeline.getPeriodCount();
  childWindowCount = childTimeline.getWindowCount();
  this.loopCount = loopCount;
  if (childPeriodCount > 0) {
    Assertions.checkState(loopCount <= Integer.MAX_VALUE / childPeriodCount,
        "LoopingMediaSource contains too many periods");
  }
}
 
Example #3
Source File: LoopingMediaSource.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
public LoopingTimeline(Timeline childTimeline, int loopCount) {
  super(/* isAtomic= */ false, new UnshuffledShuffleOrder(loopCount));
  this.childTimeline = childTimeline;
  childPeriodCount = childTimeline.getPeriodCount();
  childWindowCount = childTimeline.getWindowCount();
  this.loopCount = loopCount;
  if (childPeriodCount > 0) {
    Assertions.checkState(loopCount <= Integer.MAX_VALUE / childPeriodCount,
        "LoopingMediaSource contains too many periods");
  }
}
 
Example #4
Source File: LoopingMediaSource.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
public LoopingTimeline(Timeline childTimeline, int loopCount) {
  super(/* isAtomic= */ false, new UnshuffledShuffleOrder(loopCount));
  this.childTimeline = childTimeline;
  childPeriodCount = childTimeline.getPeriodCount();
  childWindowCount = childTimeline.getWindowCount();
  this.loopCount = loopCount;
  if (childPeriodCount > 0) {
    Assertions.checkState(loopCount <= Integer.MAX_VALUE / childPeriodCount,
        "LoopingMediaSource contains too many periods");
  }
}
 
Example #5
Source File: LoopingMediaSource.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
public LoopingTimeline(Timeline childTimeline, int loopCount) {
  super(/* isAtomic= */ false, new UnshuffledShuffleOrder(loopCount));
  this.childTimeline = childTimeline;
  childPeriodCount = childTimeline.getPeriodCount();
  childWindowCount = childTimeline.getWindowCount();
  this.loopCount = loopCount;
  if (childPeriodCount > 0) {
    Assertions.checkState(loopCount <= Integer.MAX_VALUE / childPeriodCount,
        "LoopingMediaSource contains too many periods");
  }
}