I try to send images and/or PDFs via the WebRTC Channel.
After I had so luck with “sendEndpointMessage” (I couldn’t find the corresponding listener method) I was
able to send something between users via commands.
conference.commands.addCommandListener("customcommand",(data)=>{
console.log(data,"custom command listener")
const sendData = data => {
conference.commands.sendCommand("customcommand", {
value: data,
value2: data,
attributes: {
data:data,
state:123,
from:"ka",
ka:"ka2"
}
});
}
});
On receive the values that were populate in the sendData method are either [object Object] oder [object ArrayBuffer]. It seems liek the value part gets stringified?
Is there a way to send binary data?