Brandawg93 / homebridge-nest-cam_old

Use your Nest Cam as IP camera in HomeKit.
Apache License 2.0
92 stars 14 forks source link

[q] About sending audio stream to camera speaker #26

Closed Sfinx closed 6 years ago

Sfinx commented 6 years ago

Thanks for good reversing ;) Do you know how to send the audio frames to Nest camera speaker ? Receiving is not the problem after adding the additional playback SPEEX profile.

Sfinx commented 6 years ago

Ah, found:

private void a(@NonNull ByteBuffer byteBuffer, int i, int i2, int i3) {
        byte[] bArr = new byte[byteBuffer.remaining()];
        byteBuffer.get(bArr);
        c audioPayload = new AudioPayload();
        audioPayload.payload = bArr;
        audioPayload.sessionId = i;
        audioPayload.setCodec(i2);
        audioPayload.setSampleRate(i3);
        this.p.add(new i(this, 102, audioPayload));
    }
leoneleone commented 5 years ago

@Sfinx

Can you please explain how you added 2 way audio to this plugin? I'm running homebridge-nest-cam on a raspberry pi 3

Sfinx commented 5 years ago

@leoneleone

I do not develop this plugin - it was question to the developer