Skip to content

Commit

Permalink
fix p2p if createLocalVideoTrack false
Browse files Browse the repository at this point in the history
  • Loading branch information
lastpeony committed Oct 1, 2024
1 parent da593cf commit d376767
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,7 @@ public void onConnected(String streamId) {
}
});
}
streamStoppedByUser = false;
}

public void onPeerConnectionClosed() {
Expand Down Expand Up @@ -2050,7 +2051,7 @@ public void createPeerConnectionInternal(String streamId, boolean createLocalTra

setWebRTCLogLevel();

if(createLocalTrack){
if(createLocalTrack || peer.mode == Mode.P2P){

List<String> mediaStreamLabels = Collections.singletonList("ARDAMS");
try{
Expand Down

0 comments on commit d376767

Please sign in to comment.