title: " EGL context not set " Error Occurs while generating local SDP offer on android Webrtc
body: <p><strong>Can you please check where i went wrong . Below is the method in which i was setting setVideoHwAccelerationOptions .</strong></p>
  
  <pre><code>public void setCamera() {
  
      factory.setVideoHwAccelerationOptions(rootEglBase.getEglBaseContext(), rootEglBase.getEglBaseContext());
      localMS = factory.createLocalMediaStream("ARDAMS");
  
      if (pcParams.videoCallEnabled) {
  
          getVideoCapturer();
  
          videoSource = factory.createVideoSource(videoCapturer);
          videoCapturer.startCapture(pcParams.videoWidth, pcParams.videoHeight, pcParams.videoFps);
          videoTrack = factory.createVideoTrack("ARDAMSv0", videoSource);
          videoTrack.setEnabled(true);
  
          localMS.addTrack(videoTrack);
  
      }
  
      audioSource = factory.createAudioSource(new MediaConstraints());
      audioTrack = factory.createAudioTrack("ARDAMSa0", audioSource);
      localMS.addTrack(audioTrack);
  
      mListener.onLocalStream(localMS, true);
  
  }
  </code></pre>