I have a web view that shows an embedded video. When the device is rotated, I can prevent the entire page from reloading:
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); webView.saveState(outState); } @Override protected void onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); webView.restoreState(savedInstanceState); }
However, since I play the video in this webview, the video does not continue to play. Instead, he will upload the video as if he had not started playing. How can I rotate the screen, but continue the video, how did nothing happen?
thanks
source share