com.google.android.exoplayer2.Player.RepeatMode Java Examples

The following examples show how to use com.google.android.exoplayer2.Player.RepeatMode. 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: MediaPeriodQueue.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
/**
 * Sets the {@link RepeatMode} and returns whether the repeat mode change has been fully handled.
 * If not, it is necessary to seek to the current playback position.
 */
public boolean updateRepeatMode(@RepeatMode int repeatMode) {
  this.repeatMode = repeatMode;
  return updateForPlaybackModeChange();
}
 
Example #2
Source File: DefaultControlDispatcher.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
@Override
public boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode) {
  player.setRepeatMode(repeatMode);
  return true;
}
 
Example #3
Source File: MediaPeriodQueue.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Sets the {@link RepeatMode} and returns whether the repeat mode change has been fully handled.
 * If not, it is necessary to seek to the current playback position.
 */
public boolean updateRepeatMode(@RepeatMode int repeatMode) {
  this.repeatMode = repeatMode;
  return updateForPlaybackModeChange();
}
 
Example #4
Source File: DefaultControlDispatcher.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode) {
  player.setRepeatMode(repeatMode);
  return true;
}
 
Example #5
Source File: MediaPeriodQueue.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Sets the {@link RepeatMode} and returns whether the repeat mode change has been fully handled.
 * If not, it is necessary to seek to the current playback position.
 */
public boolean updateRepeatMode(@RepeatMode int repeatMode) {
  this.repeatMode = repeatMode;
  return updateForPlaybackModeChange();
}
 
Example #6
Source File: DefaultControlDispatcher.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode) {
  player.setRepeatMode(repeatMode);
  return true;
}
 
Example #7
Source File: MediaPeriodQueue.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Sets the {@link RepeatMode} and returns whether the repeat mode change has been fully handled.
 * If not, it is necessary to seek to the current playback position.
 */
public boolean updateRepeatMode(@RepeatMode int repeatMode) {
  this.repeatMode = repeatMode;
  return updateForPlaybackModeChange();
}
 
Example #8
Source File: DefaultControlDispatcher.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode) {
  player.setRepeatMode(repeatMode);
  return true;
}
 
Example #9
Source File: MediaPeriodQueue.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Sets the {@link RepeatMode} and returns whether the repeat mode change has been fully handled.
 * If not, it is necessary to seek to the current playback position.
 */
public boolean updateRepeatMode(@RepeatMode int repeatMode) {
  this.repeatMode = repeatMode;
  return updateForPlaybackModeChange();
}
 
Example #10
Source File: DefaultControlDispatcher.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode) {
  player.setRepeatMode(repeatMode);
  return true;
}
 
Example #11
Source File: ControlDispatcher.java    From MediaSDK with Apache License 2.0 2 votes vote down vote up
/**
 * Dispatches a {@link Player#setRepeatMode(int)} operation.
 *
 * @param player The {@link Player} to which the operation should be dispatched.
 * @param repeatMode The repeat mode.
 * @return True if the operation was dispatched. False if suppressed.
 */
boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode);
 
Example #12
Source File: ControlDispatcher.java    From TelePlus-Android with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Dispatches a {@link Player#setRepeatMode(int)} operation.
 *
 * @param player The {@link Player} to which the operation should be dispatched.
 * @param repeatMode The repeat mode.
 * @return True if the operation was dispatched. False if suppressed.
 */
boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode);
 
Example #13
Source File: ControlDispatcher.java    From TelePlus-Android with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Dispatches a {@link Player#setRepeatMode(int)} operation.
 *
 * @param player The {@link Player} to which the operation should be dispatched.
 * @param repeatMode The repeat mode.
 * @return True if the operation was dispatched. False if suppressed.
 */
boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode);
 
Example #14
Source File: ControlDispatcher.java    From Telegram-FOSS with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Dispatches a {@link Player#setRepeatMode(int)} operation.
 *
 * @param player The {@link Player} to which the operation should be dispatched.
 * @param repeatMode The repeat mode.
 * @return True if the operation was dispatched. False if suppressed.
 */
boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode);
 
Example #15
Source File: ControlDispatcher.java    From Telegram with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Dispatches a {@link Player#setRepeatMode(int)} operation.
 *
 * @param player The {@link Player} to which the operation should be dispatched.
 * @param repeatMode The repeat mode.
 * @return True if the operation was dispatched. False if suppressed.
 */
boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode);