When streaming video with JW Player on Android platform, I disabled internet connection and see the toast message with content "Unable to connect to...". The question is : How we disable error toast message in JW Player ? We don't want user see any error message.
Is there any way to know the video buffer is running out so we can finish the activity before any toasts. Currently we try to catch that situation in onStateChanged() but no luck. It seems that the toast is called at the same time with onStateChanged.
@Override public void onStateChanged(@JWVrVideoView.PlayerState int newState, @JWVrVideoView.PlayerState int oldState) { if (newState == JWVrVideoView.STATE_IDLE) { if (!Utils.isNetworkAvailable(this)) { finish(); } } }
Or do you have any suggestion that we can try as the toast message reveals full video url. (Can we change the toast message?) Here is the screenshot https://drive.google.com/file/d/0B5vdcUhTdl8eS0dHNmZNVVM4bHc/view