File tree 4 files changed +28
-10
lines changed
4 files changed +28
-10
lines changed Original file line number Diff line number Diff line change 30
30
"env" : { "DEBUG" : " werift*" },
31
31
"console" : " integratedTerminal" ,
32
32
"internalConsoleOptions" : " neverOpen"
33
+ },
34
+ {
35
+ "name" : " werift:client-datachannel" ,
36
+ "type" : " node" ,
37
+ "request" : " launch" ,
38
+ "program" : " ${workspaceRoot}/werift/node_modules/ts-node-dev/lib/bin.js" ,
39
+ "protocol" : " inspector" ,
40
+ "args" : [
41
+ " --project" ,
42
+ " ${workspaceRoot}/werift/tsconfig.json" ,
43
+ " ${workspaceRoot}/werift/client.ts" ,
44
+ " -t" ,
45
+ " 1"
46
+ ],
47
+ "env" : { "DEBUG" : " werift*" },
48
+ "console" : " integratedTerminal" ,
49
+ "internalConsoleOptions" : " neverOpen"
33
50
}
34
51
]
35
52
}
Original file line number Diff line number Diff line change @@ -72,13 +72,14 @@ new Promise<void>(async (done, failed) => {
72
72
pc . setRemoteDescription ( data ) ;
73
73
74
74
await pc . connectionStateChange . watch ( ( state ) => state === "connected" ) ;
75
- if ( transceiver . receiver . tracks . length === 0 ) {
76
- console . log ( "remoteTrack not found" ) ;
77
- done ( ) ;
78
- return ;
79
- }
80
75
81
76
if ( testType === TestType . PeerConnection ) {
77
+ if ( transceiver . receiver . tracks . length === 0 ) {
78
+ console . log ( "remoteTrack not found" ) ;
79
+ done ( ) ;
80
+ return ;
81
+ }
82
+
82
83
const payloadType = transceiver . codecs . find ( ( codec ) =>
83
84
codec . mimeType . toLowerCase ( ) . includes ( "vp8" )
84
85
) ! . payloadType ;
Original file line number Diff line number Diff line change 13
13
"debug" : " ^4.3.1" ,
14
14
"express" : " ^4.17.1" ,
15
15
"got" : " ^11.8.2" ,
16
- "werift" : " ^0.9.2 " ,
16
+ "werift" : " ^0.9.3 " ,
17
17
"yargs" : " ^16.2.0"
18
18
},
19
19
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -1708,10 +1708,10 @@ webcrypto-core@^1.2.0:
1708
1708
pvtsutils "^1.1.2"
1709
1709
tslib "^2.1.0"
1710
1710
1711
- werift@^0.9.2 :
1712
- version "0.9.2 "
1713
- resolved "https://registry.yarnpkg.com/werift/-/werift-0.9.2 .tgz#0f951b0b7a4a1f3b9e20640e5e66992f4a147714 "
1714
- integrity sha512-4rG9mw8U2lLKCII0CdH4KnvNOiejLYhgEuyvdWqoF9yr2iEEd2T00LeKPOrpyKJyOzoNhcgeK4tulyq8xNcZHw ==
1711
+ werift@^0.9.3 :
1712
+ version "0.9.3 "
1713
+ resolved "https://registry.yarnpkg.com/werift/-/werift-0.9.3 .tgz#bcf831e0d4a65a882d6e3df6643ef33452715bcf "
1714
+ integrity sha512-gEACaQ0Xp7pLhWCqhqe78Q85kRiLHySfbTXJCcA5nSLq3haXERlx5xnM0kLzQBioMqoGlDyvZ1xoDNMonXC+hw ==
1715
1715
dependencies :
1716
1716
" @fidm/x509" " ^1.2.1"
1717
1717
" @peculiar/webcrypto" " ^1.1.6"
You can’t perform that action at this time.
0 commit comments