File tree 5 files changed +3
-7
lines changed
5 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ class EaseRTC {
20
20
this . pc . addIceCandidate ( new RTCIceCandidate ( JSON . parse ( iceCandidate ) ) ) ;
21
21
}
22
22
addTrack ( track ) {
23
- console . log ( track )
24
23
return new Promise ( async ( res , rej ) => {
25
24
const sender = this . pc . addTrack ( track ) ;
26
25
res ( sender )
@@ -57,7 +56,6 @@ class EaseRTC {
57
56
createAnswer ( offer = new RTCSessionDescription ( ) ) {
58
57
return new Promise ( async ( res , rej ) => {
59
58
this . pc . ondatachannel = ( e ) => {
60
- console . log ( e ) ;
61
59
if ( e . channel . label == "EaseRTCReconnectionChannel" ) {
62
60
this . EaseRTCReconnectionChannel = e . channel ;
63
61
this . EaseRTCReconnectionChannel . onmessage = ( e ) => {
@@ -76,7 +74,7 @@ class EaseRTC {
76
74
try {
77
75
await this . pc . setRemoteDescription ( new RTCSessionDescription ( JSON . parse ( offer ) ) ) ;
78
76
} catch ( error ) {
79
- console . log ( "Error while setting offer SDP" , error )
77
+ rej ( "Error while setting offer SDP" , error )
80
78
}
81
79
try {
82
80
await this . pc . createAnswer ( this . answerOptions ) . then ( async answer => {
Original file line number Diff line number Diff line change @@ -35,4 +35,5 @@ body,html{
35
35
border-radius : 50px ;
36
36
background-color : # 008eff ;
37
37
color : # ffffff ;
38
+ cursor : pointer;
38
39
}
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ RTC.onTrack = (e) => {
36
36
setInterval ( ( ) => {
37
37
const SDP = localStorage . getItem ( "offerSDP" ) ;
38
38
if ( SDP ) {
39
- console . log ( SDP )
40
39
//setting offer and creating answer
41
40
RTC . createAnswer ( SDP ) . then ( e => {
42
41
localStorage . setItem ( "answerSDP" , e )
@@ -45,7 +44,6 @@ setInterval(() => {
45
44
}
46
45
const ICE = localStorage . getItem ( "offerIce" ) ;
47
46
if ( ICE ) {
48
- console . log ( ICE )
49
47
//setting ICE
50
48
RTC . addIce ( ICE )
51
49
localStorage . removeItem ( "offerIce" ) ;
Original file line number Diff line number Diff line change @@ -35,4 +35,5 @@ body,html{
35
35
border-radius : 50px ;
36
36
background-color : # 008eff ;
37
37
color : # ffffff ;
38
+ cursor : pointer;
38
39
}
Original file line number Diff line number Diff line change @@ -40,14 +40,12 @@ RTC.createOffer().then(e => {
40
40
setInterval ( ( ) => {
41
41
const SDP = localStorage . getItem ( "answerSDP" ) ;
42
42
if ( SDP ) {
43
- console . log ( SDP )
44
43
//setting answer SDP
45
44
RTC . acceptAnswer ( SDP )
46
45
localStorage . removeItem ( "answerSDP" ) ;
47
46
}
48
47
const ICE = localStorage . getItem ( "answerIce" ) ;
49
48
if ( ICE ) {
50
- console . log ( ICE )
51
49
//setting ICE
52
50
RTC . addIce ( ICE )
53
51
localStorage . removeItem ( "answerIce" ) ;
You can’t perform that action at this time.
0 commit comments