|
@@ -1187,12 +1187,6 @@ export const ClassroomPage = () => {
|
|
|
className="w-full h-48 bg-black"
|
|
className="w-full h-48 bg-black"
|
|
|
></video>
|
|
></video>
|
|
|
<div className="absolute bottom-2 right-2 flex space-x-2">
|
|
<div className="absolute bottom-2 right-2 flex space-x-2">
|
|
|
- <button
|
|
|
|
|
- onClick={toggleScreenShare}
|
|
|
|
|
- className={`px-3 py-1 rounded-md ${isScreenSharing ? 'bg-red-600' : 'bg-blue-600'} text-white`}
|
|
|
|
|
- >
|
|
|
|
|
- {isScreenSharing ? '停止分享' : '分享屏幕'}
|
|
|
|
|
- </button>
|
|
|
|
|
<button
|
|
<button
|
|
|
onClick={toggleCamera}
|
|
onClick={toggleCamera}
|
|
|
className={`px-3 py-1 rounded-md ${isCameraOn ? 'bg-red-600' : 'bg-blue-600'} text-white`}
|
|
className={`px-3 py-1 rounded-md ${isCameraOn ? 'bg-red-600' : 'bg-blue-600'} text-white`}
|
|
@@ -1215,6 +1209,17 @@ export const ClassroomPage = () => {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+ <div className="mb-4">
|
|
|
|
|
+ <h4 className="text-lg font-medium mb-2">屏幕分享</h4>
|
|
|
|
|
+ <div className="relative">
|
|
|
|
|
+ <video
|
|
|
|
|
+ id="screenPreviewer"
|
|
|
|
|
+ muted
|
|
|
|
|
+ className="w-full h-48 bg-black hidden"
|
|
|
|
|
+ ></video>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
<div>
|
|
<div>
|
|
|
<h4 className="text-lg font-medium mb-2">远程视频</h4>
|
|
<h4 className="text-lg font-medium mb-2">远程视频</h4>
|
|
|
<div
|
|
<div
|