fix video stream not displaying in draggable container

pull/2015/head
Audric Ackermann 4 years ago
parent b47c9952d8
commit 8df85441f7
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -170,6 +170,7 @@
line-height: 16px;
letter-spacing: 0.3px;
margin-top: 3px;
white-space: nowrap;
}
.module-message__link-preview {

@ -96,23 +96,12 @@ export const DraggableCallContainer = () => {
};
}, [positionX, positionY]);
if (videoRefRemote?.current?.srcObject && remoteStream) {
if (videoRefRemote?.current && remoteStream) {
if (videoRefRemote.current.srcObject !== remoteStream) {
videoRefRemote.current.srcObject = remoteStream;
}
videoRefRemote.current.load();
}
useEffect(() => {
if (videoRefRemote?.current) {
if (videoRefRemote?.current?.srcObject && remoteStream) {
videoRefRemote.current.srcObject = remoteStream;
}
videoRefRemote.current.load();
}
}, [remoteStream, videoRefRemote, videoRefRemote?.current]);
const openCallingConversation = () => {
if (ongoingCallPubkey && ongoingCallPubkey !== selectedConversationKey) {
void openConversationWithMessages({ conversationKey: ongoingCallPubkey });

@ -12,6 +12,5 @@ export function useModulo(loopBackAt: number, delay: number) {
setCount(count + 1);
}
}, delay);
console.warn('useModulo', count);
return { count };
}

Loading…
Cancel
Save