Hello all ,
I am trying to wrap this library https://github.com/fyhertz/libstreaming
When I try this code
I get this error
Can anyone please help ?
Thanks in advance
I am trying to wrap this library https://github.com/fyhertz/libstreaming
When I try this code
B4X:
mSession = SessionBuilder.getInstance()
.setCallback(this)
.setSurfaceView(mSurfaceView)
.setPreviewOrientation(90)
.setContext( ba.applicationContext)
.setAudioEncoder(SessionBuilder.AUDIO_NONE)
.setAudioQuality(new AudioQuality(16000, 32000))
.setVideoEncoder(SessionBuilder.VIDEO_H264)
.setVideoQuality(new VideoQuality(320,240,20,500000))
.build();
mSurfaceView.getHolder().addCallback(this);
I get this error
B4X:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.SurfaceHolder net.majorkernelpanic.streaming.gl.SurfaceView.getHolder()' on a null object reference
Can anyone please help ?
Thanks in advance