fix video player
This commit is contained in:
parent
6bb7f32e9d
commit
2d21aeb954
1 changed files with 6 additions and 0 deletions
|
@ -88,6 +88,12 @@ public class VideoPlayer extends AppCompatActivity {
|
|||
|
||||
}
|
||||
|
||||
public void onDestroy() {
|
||||
player.release();
|
||||
super.onDestroy();
|
||||
|
||||
}
|
||||
|
||||
public void onBackPressed() {
|
||||
player.release();
|
||||
finish();
|
||||
|
|
Loading…
Reference in a new issue