【m】开始尝试接入后端
This commit is contained in:
@@ -67,7 +67,7 @@ const mockCallSession = {
|
||||
localUser: {
|
||||
id: "user-local-001",
|
||||
name: "我",
|
||||
avatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&h=400&fit=crop",
|
||||
avatar: "/images/p1.png",
|
||||
isHost: true,
|
||||
mediaState: {
|
||||
audio: true,
|
||||
@@ -81,8 +81,8 @@ const mockCallSession = {
|
||||
// 远端用户信息
|
||||
remoteUser: {
|
||||
id: "user-remote-002",
|
||||
name: "Sarah Chen",
|
||||
avatar: "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=400&h=400&fit=crop",
|
||||
name: "Unity",
|
||||
avatar: "/images/p2.png",
|
||||
status: "online", // online | offline | connecting
|
||||
networkQuality: "excellent", // excellent | good | fair | poor
|
||||
mediaState: {
|
||||
@@ -110,8 +110,8 @@ const mockMessages = [
|
||||
{
|
||||
id: "msg-002",
|
||||
senderId: "user-remote-002",
|
||||
senderName: "Sarah Chen",
|
||||
senderAvatar: "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=100&h=100&fit=crop",
|
||||
senderName: mockCallSession.remoteUser.name,
|
||||
senderAvatar: mockCallSession.remoteUser.avatar,
|
||||
content: "嗨,能听到我说话吗?",
|
||||
type: "text",
|
||||
timestamp: "2024-01-15T14:32:15.000Z",
|
||||
@@ -120,8 +120,8 @@ const mockMessages = [
|
||||
{
|
||||
id: "msg-003",
|
||||
senderId: "user-local-001",
|
||||
senderName: "我",
|
||||
senderAvatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=100&h=100&fit=crop",
|
||||
senderName: mockCallSession.localUser.name,
|
||||
senderAvatar: mockCallSession.localUser.avatar,
|
||||
content: "很清楚!你的画面也很清晰 👍",
|
||||
type: "text",
|
||||
timestamp: "2024-01-15T14:32:45.000Z",
|
||||
|
||||
Reference in New Issue
Block a user