Skip to content

Commit

Permalink
rehaul app to use nextjs 14 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
cacheonly authored Nov 3, 2023
1 parent 95e054f commit 7ff9ea3
Show file tree
Hide file tree
Showing 71 changed files with 4,608 additions and 4,830 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# LiveKit Livestreaming Demo

<img width="1498" alt="Screenshot 2023-02-14 at 8 13 19 AM" src="https://user-images.githubusercontent.com/304392/218794329-94641d24-461b-4c3d-b33e-0d2b3ef8fcc1.png" />
<img width="1095" alt="Screenshot 2023-11-03 at 10 13 37 AM" src="https://github.com/livekit/cloud-site/assets/304392/00f28e36-54bd-4b48-84fe-5fc6eb92a309">

This is a demo app for livestreaming via RTMP or WHIP using LiveKit. One user is a broadcaster who gets an RTMP/WHIP for streaming (eg, via OBS). Other users can view their stream and chat. We also let you broadcast directly from your device from the "Host" page.

Today most livestreams experience a 5–30 second lag, which is evident in the delay it takes for streamers to respond to chats. Those streams use HLS, which leverages existing CDNs by uploading 5–30 second video chunks, which clients download one chunk at a time. HLS is hugely scalable, but it comes with latency.

LiveKit is a sort of WebRTC CDN, achieving sub-100ms latency for audiences of 1000 or 100,000 by streaming video over backbone Internet connections and only going over the public Internet for the last mile (that is, delivery to connected clients). This enables true real-time, large-scale events, where anyone and everyone can participate.

This sample app is a [T3 Stack](https://create.t3.gg/) project bootstrapped with `create-t3-app`. Besides LiveKit, it leverages additional technologies:
This sample app only leverages the following technologies:

- [Next.js](https://nextjs.org)
- [Next.js 14](https://nextjs.org)
- [Tailwind CSS](https://tailwindcss.com)
- [tRPC](https://trpc.io)
- [shadcn/ui](https://github.com/shadcn/ui)

## Running locally
Expand Down Expand Up @@ -40,6 +39,12 @@ Then run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

You can test it by opening <http://localhost:3000> in a browser.
Expand Down
16 changes: 16 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app/globals.css",
"baseColor": "neutral",
"cssVariables": false
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
15 changes: 15 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
hostname: "api.dicebear.com",
},
{
hostname: "user-images.githubusercontent.com",
},
],
},
};

module.exports = nextConfig;
27 changes: 0 additions & 27 deletions next.config.mjs

This file was deleted.

Loading

1 comment on commit 7ff9ea3

@vercel
Copy link

@vercel vercel bot commented on 7ff9ea3 Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.