Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BoxDialer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
BoxDialer
Commits
c1ca6907
Commit
c1ca6907
authored
Oct 09, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update-
parent
401fdec5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
28 deletions
+29
-28
package.json
package.json
+1
-1
boxDIaler.js
src/lib/boxDIaler.js
+28
-27
No files found.
package.json
View file @
c1ca6907
{
{
"name"
:
"boxdialer"
,
"name"
:
"boxdialer"
,
"version"
:
"4.2.
1
"
,
"version"
:
"4.2.
2
"
,
"description"
:
""
,
"description"
:
""
,
"main"
:
"src/boxDialer.js"
,
"main"
:
"src/boxDialer.js"
,
"scripts"
:
{
"scripts"
:
{
...
...
src/lib/boxDIaler.js
View file @
c1ca6907
...
@@ -427,18 +427,19 @@ export class BoxDialer {
...
@@ -427,18 +427,19 @@ export class BoxDialer {
'
this_callSession_connection:
'
,
'
this_callSession_connection:
'
,
this
.
callSession
.
connection
,
this
.
callSession
.
connection
,
);
);
this
.
callSession
.
connection
.
onaddstream
=
()
=>
{};
this
.
callSession
.
connection
.
onaddstream
=
(
e
)
=>
{
// if (this.callSession.connection) {
// this.callSession?.connection?.onaddstream = (e) => {
};
// console.log('--== UA Conn Added STREAM: ', e);
if
(
this
.
callSession
.
connection
)
{
// let strmTrack = e.stream.getAudioTracks();
this
.
callSession
?.
connection
?.
onaddstream
=
(
e
)
=>
{
// if (strmTrack[0]) {
console
.
log
(
'
--== UA Conn Added STREAM:
'
,
e
);
// let rmMediaStream = new MediaStream([strmTrack[0]]);
let
strmTrack
=
e
.
stream
.
getAudioTracks
();
// this.remoteAudio.srcObject = rmMediaStream;
if
(
strmTrack
[
0
])
{
// this.remoteAudio.play();
let
rmMediaStream
=
new
MediaStream
([
strmTrack
[
0
]]);
// }
this
.
remoteAudio
.
srcObject
=
rmMediaStream
;
// };
this
.
remoteAudio
.
play
();
// addEventListener;
}
};
// this.callSession?.connection?.addEventListener(
// this.callSession?.connection?.addEventListener(
// 'onaddstream',
// 'onaddstream',
// (e) => {
// (e) => {
...
@@ -451,9 +452,9 @@ export class BoxDialer {
...
@@ -451,9 +452,9 @@ export class BoxDialer {
// }
// }
// },
// },
// );
// );
//
} else {
}
else
{
//
console.error('connection not found');
console
.
error
(
'
connection not found
'
);
//
}
}
// innerCallerModal;
// innerCallerModal;
this
.
onSipStateChange
.
innerCallerModal
({
this
.
onSipStateChange
.
innerCallerModal
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment