Enable Fullscreen for Youtube videos in WebView
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNeSva47IzK6YbhRr-R8ypRWCC6bI8vQS3WXXzUhx0eVRUw-a8zziexbui3DGneC0jS1yxhmfvVv2GN2fOtduksSfB1ltfn3ibjaDhaC8p_86tWgyC9pJkUItbMBkFYGOimbX2rI6GsxM/s320/Screenshot_2017-06-18-12-07-27_crop_472x571.png)
To enable fullscreen mode for YouTube videos in your sketchware project, follow the steps given below. 1. Create a new project in Sketchware. 2. In VIEW area add a WebView webview1. 3. Create a more block extra . 4. In the more block extra , use an add source directly blocks and put codes to define a new WebChromeClient class with name CustomWebClient . } public class CustomWebClient extends WebChromeClient { private View mCustomView; private WebChromeClient.CustomViewCallback mCustomViewCallback; protected FrameLayout frame; // Initially mOriginalOrientation is set to Landscape private int mOriginalOrientation = android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; private int mOriginalSystemUiVisibility; // Constructor for CustomWebClient public CustomWebClient() {} public Bitmap getDefaultVideoPoster() { if (MainActivity.this == null) { return null; } return BitmapFactory.decodeResource(MainActivity.this.getApplicationContext().getResources