【m】远端视频开发

This commit is contained in:
2026-03-04 22:29:10 +08:00
parent a5d9368ae1
commit 957ab561bf
7 changed files with 156 additions and 57 deletions

View File

@@ -148,11 +148,12 @@
<div class="absolute inset-0 video-fade-in">
<!-- [DATA_FIELD: remoteUser.videoStream] [TYPE: MediaStream | null] [BIND: srcObject] -->
<!-- [FALLBACK: remoteUser.avatar] [TYPE: string] [URL] -->
<img id="remoteVideo"
src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=1280&h=720&fit=crop"
alt="对方视频"
class="w-full h-full object-cover"
data-field="remoteUser.videoStream">
<video id="remoteVideo"
alt="对方视频"
class="w-full h-full object-cover"
autoplay
data-field="remoteUser.videoStream">
</video>
<!-- 远端信息覆盖层 -->
<div class="absolute top-6 left-6 glass px-4 py-2 rounded-full flex items-center gap-3">