stream path animation v4
update input items styling add ipc event handler for message add send-message ipc handler add audio to send-message ipc remove extra JSON stringify statement for audio message add render bug fix for add contacts
This commit is contained in:
parent
52f6893c50
commit
1627e07964
23 changed files with 450 additions and 295 deletions
|
|
@ -19,15 +19,16 @@ export default function useKeyDownHandler() {
|
|||
return;
|
||||
}
|
||||
const message = {
|
||||
content: input.value,
|
||||
signature: "EnriqueH",
|
||||
outgoing: true,
|
||||
modifier: "sf",
|
||||
imgURL: "/test/path",
|
||||
id: null
|
||||
text: input.value,
|
||||
audio: 0
|
||||
};
|
||||
// fire event with message payload
|
||||
emitter.emit("newSelfMessage", message);
|
||||
|
||||
window.postMessage({
|
||||
myTypeField: 'send-message',
|
||||
message: message
|
||||
}, '*')
|
||||
}
|
||||
|
||||
function keyDownHandler(e: KeyDownEvent) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
export default async function useMediaStream() {
|
||||
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
||||
// var audioTrack = stream.getAudioTracks()[0];
|
||||
// console.log(audioTrack.getSettings())
|
||||
return stream;
|
||||
}
|
||||
Loading…
Reference in a new issue