Skip to content

Commit

Permalink
Remove mid
Browse files Browse the repository at this point in the history
  • Loading branch information
kangshaojun committed Jul 17, 2021
1 parent 7f971e5 commit f260620
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Conference.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class Conference extends React.Component {
let big = 0;
for (let i = 0; i < streams.length; i++) {
let item = streams[i];
if (item.mid == id) {
if (item.id == id) {
big = i;
break;
}
Expand Down Expand Up @@ -238,7 +238,7 @@ class Conference extends React.Component {
)}
{streams.map((item, index) => {
return index == 0 ? (
<MainVideoView key={item.mid} id={item.mid} stream={item.stream} vidFit={vidFit} muted={item.muted} />
<MainVideoView key={item.id} id={item.id} stream={item.stream} vidFit={vidFit} muted={item.muted} />
) : (
""
);
Expand Down Expand Up @@ -272,8 +272,8 @@ class Conference extends React.Component {
{streams.map((item, index) => {
return index > 0 ? (
<SmallVideoView
key={item.mid}
id={item.mid}
key={item.id}
id={item.id}
muted={item.muted}
stream={item.stream}
videoCount={streams.length}
Expand Down

0 comments on commit f260620

Please sign in to comment.