Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cvh-camera
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Döring
cvh-camera
Commits
859c8d35
Commit
859c8d35
authored
4 years ago
by
Simon Döring
Browse files
Options
Downloads
Patches
Plain Diff
Remove js alerts on receiver side
parent
5c069e97
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
receiver/camera-receiver.js
+4
-8
4 additions, 8 deletions
receiver/camera-receiver.js
with
4 additions
and
8 deletions
receiver/camera-receiver.js
+
4
−
8
View file @
859c8d35
...
...
@@ -13,7 +13,7 @@ document.addEventListener('DOMContentLoaded', function() {
Janus
.
init
({
debug
:
'
all
'
,
callback
:
function
()
{
if
(
!
Janus
.
isWebrtcSupported
())
{
alert
(
'
No WebRTC support...
'
);
Janus
.
error
(
'
No WebRTC support...
'
);
return
;
}
...
...
@@ -37,18 +37,16 @@ document.addEventListener('DOMContentLoaded', function() {
},
error
:
function
(
error
)
{
Janus
.
error
(
'
Error attaching plugin:
'
,
error
);
alert
(
error
);
},
onmessage
:
handleMessagePublisher
});
},
error
:
function
(
error
)
{
Janus
.
error
(
error
);
alert
(
error
);
window
.
location
.
reload
();
},
destroyed
:
function
()
{
alert
(
'
Stopped
'
);
Janus
.
error
(
'
Stopped
'
);
window
.
location
.
reload
();
}
});
...
...
@@ -72,10 +70,10 @@ function handleMessagePublisher(msg, jsep) {
var
leaving
=
msg
[
'
leaving
'
];
Janus
.
log
(
'
Publisher left:
'
+
leaving
);
if
(
leaving
===
source
)
{
alert
(
'
Publisher left
'
);
Janus
.
log
(
'
Publisher left
'
);
}
}
else
if
(
msg
[
'
error
'
])
{
alert
(
msg
[
'
error
'
]);
Janus
.
log
(
'
handleMessagePublisher error:
'
+
msg
[
'
error
'
]);
}
}
}
...
...
@@ -103,7 +101,6 @@ function newRemoteFeed(id) {
},
error
:
function
(
error
)
{
Janus
.
error
(
'
Error attaching plugin (listener):
'
,
error
);
alert
(
error
);
},
onmessage
:
handleMessageListener
,
onremotestream
:
function
(
stream
)
{
...
...
@@ -143,7 +140,6 @@ function handleMessageListener(msg, jsep) {
},
error
:
function
(
error
)
{
Janus
.
error
(
'
WebRTC error:
'
,
error
);
alert
(
'
WebRTC error:
'
,
error
.
message
);
}
});
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment