Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Crashes when subscribing a stream if it is not published. #171

Open
zainkhalid91 opened this issue Apr 7, 2020 · 1 comment
Open

Comments

@zainkhalid91
Copy link

Hi! So i am facing this issue for about a week now. When i open the subscribe activity App Crashes if a stream is not published yet. How can I resolve this issue. I don't get any logs or a specific error.
However if i publish the stream before opening the activity everything works fine.

@zainkhalid91
Copy link
Author

When there is no stream published
stream.client java.lang.NullPointerException

my code

configuration = new R5Configuration(R5StreamProtocol.RTSP, UrlManager.R5_CONFIGURATION_URL, 8554, "live", 1.0f);
       configuration.setLicenseKey(UrlManager.R5_LICENCE_KEY);
       stream = new R5Stream(new R5Connection(configuration));
       stream.client = this;
       stream.setListener(this);
       r5ConnectionEvent = R5ConnectionEvent.CONNECTED;
//        stream.audioController = new R5AudioController();
//        stream.audioController.sampleRate = 44100;
       Log.d("Subscriber", ":onConnectionEvent " + r5ConnectionEvent.message);
       videoView.showDebugView(true);
       stream.setLogLevel(R5Stream.LOG_LEVEL_DEBUG);
       videoView.attachStream(stream);
       stream.play("####");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant