You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So glad that I finally found a solution here for using your optimized VideoView in my app.
I'm trying to add MediaController to the VideoView so that my users can have a control over the Video in my customized MessageAdapter but I'm getting this exception. How do i resolve this? Can you please guide me.
E: FATAL EXCEPTION: main Process: com.apvolution.bcmadmin, PID: 28109
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.widget.MediaController$MediaPlayerControl.canPause()'
on a null object reference
at android.widget.MediaController.disableUnsupportedButtons(MediaController.java: 323)
at android.widget.MediaController.setEnabled(MediaController.java: 635)
at com.apvolution.bcmadmin.adapter.VideoView$3.onPrepared(VideoView.java: 476)
at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java: 2871)
at android.os.Handler.dispatchMessage(Handler.java: 102)
at android.os.Looper.loop(Looper.java: 154)
at android.app.ActivityThread.main(ActivityThread.java: 6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java: 757)
The text was updated successfully, but these errors were encountered:
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.widget.MediaController$MediaPlayerControl.canPause()' on a null object reference
at android.widget.MediaController.disableUnsupportedButtons(MediaController.java:323)
at android.widget.MediaController.show(MediaController.java:362)
at android.widget.MediaController.show(MediaController.java:314)
So glad that I finally found a solution here for using your optimized VideoView in my app.
I'm trying to add
MediaController
to the VideoView so that my users can have a control over the Video in my customizedMessageAdapter
but I'm getting this exception. How do i resolve this? Can you please guide me.The text was updated successfully, but these errors were encountered: