Skip to content

Commit

Permalink
fix(android): enable full screen video (#1763)
Browse files Browse the repository at this point in the history
* Allow requestFullscreen on videos

This allows capacitor to handle fullscreen
  • Loading branch information
rgolea authored and jcesarmobile committed Jul 17, 2019
1 parent 4bcdd89 commit 2b38032
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.view.View;

import com.getcapacitor.plugin.camera.CameraUtils;

Expand All @@ -41,6 +42,17 @@ public class BridgeWebChromeClient extends WebChromeClient {
public BridgeWebChromeClient(Bridge bridge) {
this.bridge = bridge;
}

@Override
public void onShowCustomView(View view, CustomViewCallback callback) {
callback.onCustomViewHidden();
super.onShowCustomView(view, callback);
}

@Override
public void onHideCustomView() {
super.onHideCustomView();
}

@Override
public void onPermissionRequest(final PermissionRequest request) {
Expand Down

0 comments on commit 2b38032

Please sign in to comment.