diff --git a/packages/live-demo/src/pages/room/index.tsx b/packages/live-demo/src/pages/room/index.tsx index 52733cc..00c4000 100644 --- a/packages/live-demo/src/pages/room/index.tsx +++ b/packages/live-demo/src/pages/room/index.tsx @@ -48,7 +48,6 @@ export const Room = () => { cover: detail?.cover_url || '', }); setPlayerUrl(detail?.rtmp_url || ''); - setAnchorInfo(detail.anchor_info); }); }, { pollingInterval: 3000, @@ -70,7 +69,6 @@ export const Room = () => { const [noticeVisible, setNoticeVisible] = useState(false); const [playerUrl, setPlayerUrl] = useState(); const [playLoading, setPlayLoading] = useState(false); - const [anchorInfo, setAnchorInfo] = useState(); /** * 播放器 @@ -132,31 +130,7 @@ export const Room = () => { */ const { state: imStoreState, dispatch: dispatchIMStoreState } = useIMStore(); const [imManager, setIMManager] = useState(null); - const [messages, setMessages] = useState([ - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '你好' }, - { nickname: 'wyf', content: '最后一句' }, - ]); + const [messages, setMessages] = useState([]); /** * 初始化im