-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add loop support + update exoPlayer core
- Loading branch information
Reza Amuzadeh
committed
Apr 23, 2020
1 parent
d4445f9
commit 80d6a9b
Showing
10 changed files
with
235 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Thu Jun 27 12:19:07 GMT+03:30 2019 | ||
#Thu Apr 23 18:42:10 IRDT 2020 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip |
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
61 changes: 61 additions & 0 deletions
61
library/src/main/java/com/potyvideo/library/globalEnums/EnumLoop.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,61 @@ | ||
package com.potyvideo.library.globalEnums; | ||
|
||
public enum EnumLoop { | ||
|
||
UNDEFINE("UNDEFINE", -1), | ||
INFINITE("Infinite", 1), | ||
Finite("Finite", 2), | ||
; | ||
|
||
private String valueStr; | ||
|
||
private Integer value; | ||
|
||
EnumLoop(String valueStr, Integer value) { | ||
this.valueStr = valueStr; | ||
this.value = value; | ||
} | ||
|
||
public static EnumLoop get(String value) { | ||
if (value == null) { | ||
return UNDEFINE; | ||
} | ||
|
||
EnumLoop[] arr$ = values(); | ||
for (EnumLoop val : arr$) { | ||
if (val.valueStr.equalsIgnoreCase(value.trim())) { | ||
return val; | ||
} | ||
} | ||
|
||
return UNDEFINE; | ||
} | ||
|
||
public static EnumLoop get(Integer value) { | ||
|
||
if (value == null) { | ||
return UNDEFINE; | ||
} | ||
|
||
EnumLoop[] arr$ = values(); | ||
for (EnumLoop val : arr$) { | ||
if (val.value == value) { | ||
return val; | ||
} | ||
} | ||
|
||
return UNDEFINE; | ||
} | ||
|
||
public String getValueStr() { | ||
return valueStr; | ||
} | ||
|
||
public Integer getValue() { | ||
return value; | ||
} | ||
|
||
public void setValueStr(String valueStr) { | ||
this.valueStr = valueStr; | ||
} | ||
} |
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