fixed tests
This commit is contained in:
108
public/publisher.html
Normal file
108
public/publisher.html
Normal file
@@ -0,0 +1,108 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Publisher - WebRTC Broadcast</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
background: white;
|
||||
padding: 30px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.controls {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
button {
|
||||
padding: 12px 24px;
|
||||
font-size: 16px;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
.start-btn {
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
.start-btn:hover {
|
||||
background-color: #45a049;
|
||||
}
|
||||
.stop-btn {
|
||||
background-color: #f44336;
|
||||
color: white;
|
||||
}
|
||||
.stop-btn:hover {
|
||||
background-color: #da190b;
|
||||
}
|
||||
.stop-btn:disabled, .start-btn:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
video {
|
||||
width: 100%;
|
||||
max-width: 640px;
|
||||
height: auto;
|
||||
border: 2px solid #ddd;
|
||||
border-radius: 5px;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.status {
|
||||
text-align: center;
|
||||
margin: 20px 0;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.status.connected {
|
||||
background-color: #d4edda;
|
||||
color: #155724;
|
||||
border: 1px solid #c3e6cb;
|
||||
}
|
||||
.status.disconnected {
|
||||
background-color: #f8d7da;
|
||||
color: #721c24;
|
||||
border: 1px solid #f5c6cb;
|
||||
}
|
||||
.subscribers-count {
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Publisher Interface</h1>
|
||||
|
||||
<div class="status" id="status">Disconnected</div>
|
||||
|
||||
<div class="subscribers-count" id="subscribersCount">Subscribers: 0</div>
|
||||
|
||||
<div class="controls">
|
||||
<button id="startBtn" class="start-btn">Start Broadcasting</button>
|
||||
<button id="stopBtn" class="stop-btn" disabled>Stop Broadcasting</button>
|
||||
</div>
|
||||
|
||||
<video id="localVideo" autoplay muted playsinline></video>
|
||||
</div>
|
||||
|
||||
<script type="module" src="./js/publisher.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user