Why Android Webview is not working fullscreen button on the player?

Question from a newbie. Creating an app for the website. on the website should player YouTube. The application consists of a WebView which loads a website. So the player button does not work (full screen mode) the rest of the buttons work. How can I fix the example to my code? Thanks in advance!
public class MainActivity extends AppCompatActivity {

 private WebView view;

@Override
 protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R. layout.activity_main);
 this.view = (WebView) findViewById(R. id.webView);
 view = findViewById(R. id.webView);
 WebSettings webSettings = view.getSettings();
webSettings.setJavaScriptEnabled(true);
view.getSettings().setJavaScriptEnabled(true);
 view.setWebViewClient(new WebViewClient());
 view.setWebChromeClient(new WebChromeClient(){} );
view.loadUrl("https://www.youtube.com/");
}
 //method to handle the BACK button
@Override
 public void onBackPressed() {
 if (view.canGoBack()) {
view.goBack();
 } else {
super.onBackPressed();
}
}
 //method prevents the restart when rotating screen
@Override
 public void onConfigurationChanged(Configuration newConfig){
super.onConfigurationChanged(newConfig);
}

}
April 3rd 20 at 18:39
0 answer

Find more questions by tags JavaAndroid