shuisheng 2 rokov pred
rodič
commit
99d7515fa2
2 zmenil súbory, kde vykonal 2 pridanie a 3 odobranie
  1. 0 2
      src/hooks/use-pull.ts
  2. 2 1
      src/views/home/index.vue

+ 0 - 2
src/hooks/use-pull.ts

@@ -462,7 +462,6 @@ export function usePull({
           'webrtc'
         );
         currentLiveRoom.value = data.data;
-        console.log(data.data, userAvatar, 3333);
         if (route.query.liveType === liveTypeEnum.srsWebrtcPull) {
           instance.send({ msgType: WsMsgTypeEnum.getLiveUser });
         } else if (route.query.liveType === liveTypeEnum.srsFlvPull) {
@@ -619,7 +618,6 @@ export function usePull({
       const danmu: IDanmu = {
         msgType: DanmuMsgTypeEnum.otherJoin,
         socket_id: data.data.join_socket_id,
-        userInfo: data.data.user,
         msg: '',
       };
       damuList.value.push(danmu);

+ 2 - 1
src/views/home/index.vue

@@ -85,7 +85,7 @@
             }"
             :style="{
               backgroundImage: `url(${
-                item.live_room?.cover_img || currentLiveRoom?.user?.avatar
+                item.live_room?.cover_img || item?.user?.avatar
               })`,
             }"
             @click="changeLiveRoom(item)"
@@ -139,6 +139,7 @@ const { startPlay, destroy } = useFlvPlay();
 
 function changeLiveRoom(item: ILive) {
   currentLiveRoom.value = item;
+  console.log(item, 22222);
   nextTick(async () => {
     if (
       item.live_room?.type === LiveRoomTypeEnum.user_srs ||