|
@@ -225,8 +225,8 @@ export default {
|
|
|
...uploadquestion({ upcreate: 'create', upquery: 'query' }),
|
|
|
reviewVideo(newstrem, newid, oldstrem, oldid) {
|
|
|
oldstrem.stop();
|
|
|
- oldstrem.play(newid);
|
|
|
newstrem.stop();
|
|
|
+ oldstrem.play(newid);
|
|
|
newstrem.play(oldid);
|
|
|
},
|
|
|
stermPlay(strem, id) {
|
|
@@ -261,11 +261,9 @@ export default {
|
|
|
console.log(this.stremMeetlist);
|
|
|
const oldstrem_ = _.find(this.stremlist, { type: 'mainr' });
|
|
|
console.log(oldstrem_);
|
|
|
- for (const elm of this.stremMeetlist) {
|
|
|
- console.log(elm);
|
|
|
- if (elm.swichuserid === objid) {
|
|
|
- this.reviewVideo(elm.strem, elm.id, oldstrem_.strem, 'look-video-right');
|
|
|
- }
|
|
|
+ const swichstrem = _.find(this.stremMeetlist, { swichuserid: objid });
|
|
|
+ if (swichstrem) {
|
|
|
+ this.reviewVideo(swichstrem.strem, swichstrem.id, oldstrem_.strem, 'look-video-right');
|
|
|
}
|
|
|
} else {
|
|
|
console.log('share--' + this.othedivshow);
|
|
@@ -468,8 +466,7 @@ export default {
|
|
|
const swichstrem = _.find(this.stremMeetlist, { swichuserid: switchzjr });
|
|
|
if (swichstrem) {
|
|
|
this.stermStop(swichstrem.strem);
|
|
|
- const id_ = 'othe-video-' + swichstrem.index;
|
|
|
- this.stermPlay(oldstrem_.strem, id_);
|
|
|
+ this.stermPlay(oldstrem_.strem, swichstrem.id);
|
|
|
}
|
|
|
},
|
|
|
async userswichrole() {
|