Fix bug where useTextureView wasn't defaulting to true
This commit is contained in:
parent
62f722147e
commit
5a053a7469
@ -38,7 +38,7 @@ public final class ExoPlayerView extends FrameLayout {
|
|||||||
private Context context;
|
private Context context;
|
||||||
private ViewGroup.LayoutParams layoutParams;
|
private ViewGroup.LayoutParams layoutParams;
|
||||||
|
|
||||||
private boolean useTextureView = false;
|
private boolean useTextureView = true;
|
||||||
private boolean hideShutterView = false;
|
private boolean hideShutterView = false;
|
||||||
|
|
||||||
public ExoPlayerView(Context context) {
|
public ExoPlayerView(Context context) {
|
||||||
@ -162,9 +162,11 @@ public final class ExoPlayerView extends FrameLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setUseTextureView(boolean useTextureView) {
|
public void setUseTextureView(boolean useTextureView) {
|
||||||
|
if (useTextureView != this.useTextureView) {
|
||||||
this.useTextureView = useTextureView;
|
this.useTextureView = useTextureView;
|
||||||
updateSurfaceView();
|
updateSurfaceView();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setHideShutterView(boolean hideShutterView) {
|
public void setHideShutterView(boolean hideShutterView) {
|
||||||
this.hideShutterView = hideShutterView;
|
this.hideShutterView = hideShutterView;
|
||||||
|
@ -131,8 +131,6 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
private boolean disableFocus;
|
private boolean disableFocus;
|
||||||
private float mProgressUpdateInterval = 250.0f;
|
private float mProgressUpdateInterval = 250.0f;
|
||||||
private boolean playInBackground = false;
|
private boolean playInBackground = false;
|
||||||
private boolean useTextureView = false;
|
|
||||||
private boolean hideShutterView = false;
|
|
||||||
private Map<String, String> requestHeaders;
|
private Map<String, String> requestHeaders;
|
||||||
// \ End props
|
// \ End props
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user