Skip to content

Commit

Permalink
feat: add agora plugin support webrtc permission request
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Dec 6, 2023
1 parent 4eedaf8 commit d290d94
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React, { useState } from 'react';
import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import { Divider, ErrorBoundary } from '@capital/component';
import { MeetingView, MeetingViewProps } from './MeetingView';
import { SpeakerNames } from './SpeakerNames';
import { Translate } from '../translate';
import { sharedEvent } from '@capital/common';

const FloatWindow = styled.div`
z-index: 100;
Expand Down Expand Up @@ -46,6 +47,10 @@ export const FloatMeetingWindow: React.FC<MeetingViewProps> = React.memo(
(props) => {
const [folder, setFolder] = useState(false);

useEffect(() => {
sharedEvent.emit('ensureWebRTCPermission');
}, []);

return (
<FloatWindow
style={{
Expand Down

0 comments on commit d290d94

Please sign in to comment.