Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

java.lang.IllegalArgumentException: Receiver not registered: ...exoplayer.audio.


Hi.
I am trying to implement a video player using JWPlayer. I am a native Android Developer. I did every step in the title of Instantiating a JWPlayerView programmatically in this link: https://developer.jwplayer.com/sdk/android/docs/developer-guide/usage/jwplayer-view/
But When I click to Fullscreen button, video goes landscape but I see a white screen. Not video but sound. In this situation, when I click to back button of Android, it goes to previous activity. And in console, I have a strange error. java.lang.IllegalArgumentException: Receiver not registered: com.google.android.exoplayer.audio.AudioCapabilitiesReceiver$HdmiAudioPlugBroadcastReceiver I put this codes to a Fragment not to an Activity.

@Override
public void onDestroyView() {
if(playerView != null){
try {
playerView.onDestroy(); // Error is visible right here.
}catch (IllegalArgumentException e){
e.printStackTrace();
}
}
super.onDestroyView();
}


1 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

For me to reproduce this issue reliably I will need this information about your application:

Android API Build level (16,17… 22):
JW Player SDK for Android version number:
Device make and model where you are experiencing this issue:
Provide step by step instructions on how to reproduce your issue:
JW Player Demo Application Source Code that is also experiencing the issue:

As the last field suggests, please replicate this issue using the JW Player Demo Application and send us a link to a zipped version of the entire Android Studio Project for testing which can be found here:
https://github.com/jwplayer/jwplayer-sdk-android-demo

This question has received the maximum number of answers.