Android formatting fixes
This commit is contained in:
parent
63625b3ce3
commit
e3fb49cebb
@ -182,9 +182,7 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
// Props from React
|
// Props from React
|
||||||
private int backBufferDurationMs = DefaultLoadControl.DEFAULT_BACK_BUFFER_DURATION_MS;
|
private int backBufferDurationMs = DefaultLoadControl.DEFAULT_BACK_BUFFER_DURATION_MS;
|
||||||
private Uri srcUri;
|
private Uri srcUri;
|
||||||
|
|
||||||
private long startTimeMs = -1;
|
private long startTimeMs = -1;
|
||||||
|
|
||||||
private long endTimeMs = -1;
|
private long endTimeMs = -1;
|
||||||
private String extension;
|
private String extension;
|
||||||
private boolean repeat;
|
private boolean repeat;
|
||||||
@ -769,13 +767,7 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private MediaSource buildMediaSource(
|
private MediaSource buildMediaSource(Uri uri, String overrideExtension, DrmSessionManager drmSessionManager, long startTimeMs, long endTimeMs) {
|
||||||
Uri uri,
|
|
||||||
String overrideExtension,
|
|
||||||
DrmSessionManager drmSessionManager,
|
|
||||||
long startTimeMs,
|
|
||||||
long endTimeMs) {
|
|
||||||
|
|
||||||
if (uri == null) {
|
if (uri == null) {
|
||||||
throw new IllegalStateException("Invalid video uri");
|
throw new IllegalStateException("Invalid video uri");
|
||||||
}
|
}
|
||||||
@ -1487,13 +1479,7 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
|
|
||||||
// ReactExoplayerViewManager public api
|
// ReactExoplayerViewManager public api
|
||||||
|
|
||||||
public void setSrc(
|
public void setSrc(final Uri uri, final long startTimeMs, final long endTimeMs, final String extension, Map<String, String> headers) {
|
||||||
final Uri uri,
|
|
||||||
final long startTimeMs,
|
|
||||||
final long endTimeMs,
|
|
||||||
final String extension,
|
|
||||||
Map<String, String> headers) {
|
|
||||||
|
|
||||||
if (uri != null) {
|
if (uri != null) {
|
||||||
boolean isSourceEqual = uri.equals(srcUri) && startTimeMs == this.startTimeMs && endTimeMs == this.endTimeMs;
|
boolean isSourceEqual = uri.equals(srcUri) && startTimeMs == this.startTimeMs && endTimeMs == this.endTimeMs;
|
||||||
hasDrmFailed = false;
|
hasDrmFailed = false;
|
||||||
|
@ -30,9 +30,7 @@ public class ReactExoplayerViewManager extends ViewGroupManager<ReactExoplayerVi
|
|||||||
private static final String REACT_CLASS = "RCTVideo";
|
private static final String REACT_CLASS = "RCTVideo";
|
||||||
private static final String PROP_SRC = "src";
|
private static final String PROP_SRC = "src";
|
||||||
private static final String PROP_SRC_URI = "uri";
|
private static final String PROP_SRC_URI = "uri";
|
||||||
|
|
||||||
private static final String PROP_SRC_START_TIME = "startTime";
|
private static final String PROP_SRC_START_TIME = "startTime";
|
||||||
|
|
||||||
private static final String PROP_SRC_END_TIME = "endTime";
|
private static final String PROP_SRC_END_TIME = "endTime";
|
||||||
private static final String PROP_AD_TAG_URL = "adTagUrl";
|
private static final String PROP_AD_TAG_URL = "adTagUrl";
|
||||||
private static final String PROP_SRC_TYPE = "type";
|
private static final String PROP_SRC_TYPE = "type";
|
||||||
|
Loading…
Reference in New Issue
Block a user