Skip to content

Commit d517abe

Browse files
committed
video
1 parent 2f69db7 commit d517abe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
88
</p>
99

10-
## About Laravel
10+
## Laravel Echo WebRTC Demo
1111

12-
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
12+
This repo utilizes Laravel Echo to build a signaling server for WebRTC requests.
1313

1414
- [Simple, fast routing engine](https://laravel.com/docs/routing).
1515
- [Powerful dependency injection container](https://laravel.com/docs/container).

resources/js/Pages/Welcome.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const props = defineProps({
2020
})
2121
const hasStream = ref(false);
2222
const pc = new RTCPeerConnection();
23+
pc.createDataChannel(props.callerId);
2324
pc.oniceconnectionstatechange = () => {
2425
if (pc.iceConnectionState === "failed") {
2526
pc.restartIce();
@@ -55,7 +56,7 @@ const form = useForm({
5556
5657
const submit = async () => {
5758
console.log('SUBMIT')
58-
await pc.createDataChannel(props.callerId);
59+
5960
form.sdp = await pc.createOffer();
6061
console.log(form.caller_id)
6162
await pc.setLocalDescription(form.sdp);

0 commit comments

Comments
 (0)