Commit 24f4c019 authored by Muhammadali's avatar Muhammadali

update-

parent 38a46b5c
{
"name": "boxdialer",
"version": "4.3.6",
"version": "4.3.7",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -20,10 +20,12 @@ const Block = styled.div`
? {
opacity: '1',
transform: 'translate(-50%, 0)',
display: 'block',
}
: {
opacity: '0',
transform: 'translate(-50%, 0)',
display: 'none',
}}
`;
Block.ShowNumbersArea = styled.div`
......
......@@ -41,7 +41,7 @@ const ModalPhoneNumpad = ({
}, [modalState.bool]);
const inputController = ({ value, type, from }) => {
// boxDialer.onSoundType({ type: 'pick', bool: true });
boxDialer.onSoundType({ type: 'pick', bool: true });
switch (type) {
case 'add':
if (
......@@ -179,7 +179,6 @@ const ModalPhoneNumpad = ({
// -------------------
var currentTime = new Date();
if (dynamicValue === 'connected') {
console.log(call_history.slice(-1), inputValue);
if (
Boolean(inputValue.toString().length) &&
call_history.slice(-1)[0]?.value != inputValue
......
......@@ -56,6 +56,7 @@ export class BoxDialer {
callSession;
sipDomain;
player;
strmTrack;
constructor() {
console.log('registerData: ', this.registerData);
this.played = false;
......@@ -407,26 +408,14 @@ export class BoxDialer {
'this_callSession_connection: ',
this.callSession.connection,
);
this.callSession.connection.addEventListener('addstream', (e) => {
console.log('--== UA Conn Added STREAM: ', e);
let strmTrack = e.stream.getAudioTracks();
if (strmTrack[0]) {
let rmMediaStream = new MediaStream([strmTrack[0]]);
this.remoteAudio.srcObject = rmMediaStream;
this.remoteAudio.play();
}
});
let func = (e) => {
let strmTrack = e.stream.getAudioTracks();
if (strmTrack[0]) {
let rmMediaStream = new MediaStream([strmTrack[0]]);
this.remoteAudio.srcObject = rmMediaStream;
this.callSession.connection.onaddstream = (e) => {
this.strmTrack = e.stream.getAudioTracks();
if (this.strmTrack[0]) {
this.remoteAudio.srcObject = new MediaStream([this.strmTrack[0]]);
this.remoteAudio.play();
}
};
this.callSession.connection.onaddstream = func;
this.setGuiPhoneState({
funcName: 'modalState',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment