mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
webm demo app: Fix crash on screen touch
Fix crash on screen touch before starting playback. mediaController cannot be used until after setMediaPlayer has been called on it.
This commit is contained in:
parent
ce26e601ed
commit
6ee6bc5c59
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ public class VideoPlayer extends Activity implements OnClickListener,
|
||||||
}
|
}
|
||||||
|
|
||||||
private void toggleControlsVisibility() {
|
private void toggleControlsVisibility() {
|
||||||
if (mediaController != null) {
|
if (mediaController != null && player != null) {
|
||||||
if (mediaController.isShowing()) {
|
if (mediaController.isShowing()) {
|
||||||
mediaController.hide();
|
mediaController.hide();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue