-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from thisisthekap/br_5_video_looping_support
added repeat mode support
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
java/ExoPlayerSlim/exoplayerslim/src/main/java/com/tonestro/exoplayerslim/RepeatModes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.tonestro.exoplayerslim; | ||
|
||
public class RepeatModes { | ||
|
||
private RepeatModes() { | ||
} | ||
|
||
/** | ||
* Normal playback without repetition. "Previous" and "Next" actions move to the previous and next | ||
* windows respectively, and do nothing when there is no previous or next window to move to. | ||
*/ | ||
public static final int REPEAT_MODE_OFF = 0; | ||
/** | ||
* Repeats the currently playing window infinitely during ongoing playback. "Previous" and "Next" | ||
* actions behave as they do in {@link #REPEAT_MODE_OFF}, moving to the previous and next windows | ||
* respectively, and doing nothing when there is no previous or next window to move to. | ||
*/ | ||
public static final int REPEAT_MODE_ONE = 1; | ||
/** | ||
* Repeats the entire timeline infinitely. "Previous" and "Next" actions behave as they do in | ||
* {@link #REPEAT_MODE_OFF}, but with looping at the ends so that "Previous" when playing the | ||
* first window will move to the last window, and "Next" when playing the last window will move to | ||
* the first window. | ||
*/ | ||
public static final int REPEAT_MODE_ALL = 2; | ||
} |