-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
169 lines (158 loc) · 7.21 KB
/
index.php
File metadata and controls
169 lines (158 loc) · 7.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PHP WebRTC Examples Collection</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/css/bootstrap.min.css" rel="stylesheet">
<style>
.card {
height: 100%;
transition: transform 0.3s;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.card-header {
font-weight: bold;
background-color: #f8f9fa;
}
.example-link {
text-decoration: none;
}
.jumbotron {
background-color: #f8f9fa;
padding: 2rem;
margin-bottom: 2rem;
border-radius: 0.3rem;
}
</style>
</head>
<body>
<div class="container mt-4">
<div class="jumbotron">
<h1 class="display-4">PHP WebRTC Examples</h1>
<p class="lead">A collection of practical WebRTC implementations using PHP backend</p>
<hr class="my-4">
<p>Explore various WebRTC functionalities through these interactive examples</p>
</div>
<div class="row row-cols-1 row-cols-md-3 g-4">
<div class="col">
<a href="/echo" class="example-link">
<div class="card">
<div class="card-header">Echo Test</div>
<div class="card-body">
<p class="card-text">This example illustrates a basic audio/video echo where your own media stream is reflected back to you, demonstrating the core WebRTC media capture functionality.</p>
<div class="d-flex justify-content-end">
<small class="text-muted">View Example →</small>
</div>
</div>
</div>
</a>
</div>
<div class="col">
<div class="card">
<div class="card-header">Peer Connection</div>
<div class="card-body">
<p class="card-text">Demonstrates establishing a connection between two peers using WebRTC's RTCPeerConnection API with PHP signaling server implementation.</p>
<div class="d-flex justify-content-between align-items-center">
<span class="badge bg-warning">Coming Soon</span>
<small class="text-muted">Under Development</small>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">Data Channel</div>
<div class="card-body">
<p class="card-text">Shows how to establish a WebRTC data channel for peer-to-peer text messaging without going through a server after the initial connection setup.</p>
<div class="d-flex justify-content-between align-items-center">
<span class="badge bg-warning">Coming Soon</span>
<small class="text-muted">Under Development</small>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">Screen Sharing</div>
<div class="card-body">
<p class="card-text">Demonstrates how to capture and share your screen with other peers through WebRTC using a PHP signaling server.</p>
<div class="d-flex justify-content-between align-items-center">
<span class="badge bg-warning">Coming Soon</span>
<small class="text-muted">Under Development</small>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">Video Room</div>
<div class="card-body">
<p class="card-text">A multi-user video conferencing room where multiple participants can join and communicate using WebRTC with PHP handling the signaling.</p>
<div class="d-flex justify-content-between align-items-center">
<span class="badge bg-warning">Coming Soon</span>
<small class="text-muted">Under Development</small>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">File Transfer</div>
<div class="card-body">
<p class="card-text">This example shows how to transfer files directly between browsers using WebRTC data channels with PHP handling the initial connection.</p>
<div class="d-flex justify-content-between align-items-center">
<span class="badge bg-warning">Coming Soon</span>
<small class="text-muted">Under Development</small>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">Audio Only Chat</div>
<div class="card-body">
<p class="card-text">Demonstrates how to set up an audio-only communication channel between peers using WebRTC with PHP signaling.</p>
<div class="d-flex justify-content-between align-items-center">
<span class="badge bg-warning">Coming Soon</span>
<small class="text-muted">Under Development</small>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">Media Recording</div>
<div class="card-body">
<p class="card-text">Shows how to record WebRTC media streams on the client side and optionally upload the recordings to the PHP server.</p>
<div class="d-flex justify-content-between align-items-center">
<span class="badge bg-warning">Coming Soon</span>
<small class="text-muted">Under Development</small>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-header">PHP WebSocket Signaling</div>
<div class="card-body">
<p class="card-text">Implements a WebRTC connection with real-time signaling through PHP-based WebSockets using Ratchet or similar libraries.</p>
<div class="d-flex justify-content-between align-items-center">
<span class="badge bg-warning">Coming Soon</span>
<small class="text-muted">Under Development</small>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include 'footer.php';
?>
<!-- Bootstrap JS Bundle with Popper -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.bundle.min.js"></script>
</body>
</html>