Skip to content

Commit

Permalink
eee,wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
ddspwr committed Apr 13, 2019
1 parent 882d9cb commit 10e8ea6
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,13 @@ public void onAddRemoteStream(MediaStream stream, String userId) {
stream.videoTracks.get(0).addSink(sink);

int size = _remoteVideoTracks.size();
x = (width + 9) * (size % 3 + 1) + 9;

// x = (width + 9) * (size % 3 + 1) + 9;
// 之前算错了
x = (width + 9) * ((size + 1) % 3) + 9;
y = ((size + 1) / 3) * (height + 10) + 10;


});


Expand All @@ -189,7 +193,8 @@ public void onCloseWithId(String userId) {
int size = _remoteVideoTracks.size();


x = (width + 9) * (size % 3 + 1) + 9;
// x = (width + 9) * (size % 3 + 1) + 9;
x = (width + 9) * ((size + 1) % 3) + 9;
y = ((size + 1) / 3) * (height + 10) + 10;

});
Expand Down

0 comments on commit 10e8ea6

Please sign in to comment.