diff --git a/pages/_app.tsx b/pages/_app.tsx index c7222bf..5ace32a 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -5,3 +5,9 @@ import { AppProps } from 'next/app' const App = ({ Component, pageProps }: AppProps) => export default App + +declare global { + interface HTMLCanvasElement { + captureStream(frameRate?: number): MediaStream; + } +} \ No newline at end of file diff --git a/pages/index.tsx b/pages/index.tsx index cc472b6..27b8cf7 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -29,6 +29,7 @@ const Home = () => (