benwtrent / janus-gateway-android

This is an API wrapper that utilizes the native WebRTC build and is made to ease communication with the janus-gateway
MIT License
112 stars 72 forks source link

audio only #18

Open interfaith opened 7 years ago

interfaith commented 7 years ago

what fix will avoid any video here ? just audio

private void init() { try { EGLContext con = VideoRendererGui.getEGLContext(); voiceMail = new VoiceMail(localRender, remoteRender); voiceMail.initializeMediaContext(JanusActivity.this, true, true, true, con); voiceMail.Start();

        } catch (Exception ex) {
            Log.e("computician.janusclient", ex.getMessage());
        }
    }
benwtrent commented 7 years ago

You need to change the media constraints utilized down in the JanusClientAPI classes. Here is an example of setting the constraints: https://github.com/Computician/janus-gateway-android/blob/master/app/src/main/java/computician/janusclient/VideoRoomTest.java#L117

You should make send and receive video both false. I also THINK you can get rid of the EGLContext. I have not really messed with audio only but it should be possible.

interfaith commented 7 years ago

this looks like the place to dig in :) https://docs.oracle.com/cd/E55119_01/doc.71/e55126/wd_sampleapps.htm#WSEWD357

and then revisit this janus solution.