Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

video-db/rts-dashcam

Repository files navigation

RTS Dashcam Demo

A Next.js demo that showcases a real-time dashcam monitoring experience powered by VideoDB-style streaming, scene indexing, alerts, and an AI copilot UI.

The app plays a published HLS dashcam stream, surfaces time-based safety alerts, shows scene summaries as the video progresses, and lets users ask preset copilot questions about events in the footage.

Features

  • HLS video playback for a published dashcam stream
  • Time-based alert overlay for notable road events
  • Scene index panel with generated summaries for video segments
  • Copilot chat panel with contextual responses
  • Responsive dashboard layout for desktop and mobile
  • Mock API routes for alerts, chat, and scene indexes

Tech stack

  • Next.js App Router
  • React
  • TypeScript
  • Tailwind CSS
  • HLS.js / Video.js

Getting started

Install dependencies:

npm install

Run the development server:

npm run dev

Open http://localhost:3000 in your browser.

Available scripts

npm run dev # Start the local development server
npm run build # Build the production app
npm run start # Start the production server
npm run lint # Run linting

Configuration

The app can be served from a sub-path by setting NEXT_PUBLIC_BASE_PATH.

Example:

NEXT_PUBLIC_BASE_PATH=/dashcam-demo npm run dev

For local development at the root path, no environment variables are required.

Project structure

src/app/
 api/alerts/ # Returns alert events based on playback time
 api/chat/ # Returns copilot responses for preset questions
 api/indexes/ # Returns scene summaries based on playback time
 page.tsx # Main demo page
src/components/ # Video player, activity bar, chat, alerts, dashboard
public/ # Static icons and thumbnails

Notes

  • The demo uses published VideoDB HLS URLs and static/mock API responses.
  • No VideoDB API key is required to run this demo locally.
  • If you replace the sample stream, update the related thumbnails, alerts, chat responses, and scene indexes to match your footage.

Deployment

This is a standard Next.js app and can be deployed to Vercel or any platform that supports Next.js.

npm run build
npm run start

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /