I need the producer to serialize and send a custom object that contains a Bytebuffer (video chunk) and a String:
public class NvrWSBinaryMessage {
private String messageUuid;
private final ByteBuffer payload;
...
And have the consumer correctly deserialize.
I've not found a correct way to create a custom serializer/deserializer for the object having the ByteBuffer. I tried to send the object as a bytearray without any success.