|
|
@@ -1199,12 +1199,6 @@ export const ClassroomPage = () => {
|
|
|
>
|
|
|
{isAudioOn ? '关闭麦克风' : '开启麦克风'}
|
|
|
</button>
|
|
|
- <button
|
|
|
- onClick={toggleScreenShare}
|
|
|
- className={`px-3 py-1 rounded-md ${isScreenSharing ? 'bg-red-600' : 'bg-blue-600'} text-white`}
|
|
|
- >
|
|
|
- {isScreenSharing ? '停止分享' : '分享屏幕'}
|
|
|
- </button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -1217,6 +1211,14 @@ export const ClassroomPage = () => {
|
|
|
muted
|
|
|
className="w-full h-48 bg-black hidden"
|
|
|
></video>
|
|
|
+ <div className="absolute bottom-2 right-2">
|
|
|
+ <button
|
|
|
+ onClick={toggleScreenShare}
|
|
|
+ className={`px-3 py-1 rounded-md ${isScreenSharing ? 'bg-red-600' : 'bg-blue-600'} text-white`}
|
|
|
+ >
|
|
|
+ {isScreenSharing ? '停止分享' : '分享屏幕'}
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|