DEV Community

Mayank
Mayank

Posted on

How to play video using MediaStream in Next JS?

I am trying to play video using media stream in next js. My api looks like this

import fs from 'fs'
import path from 'path'
export default function (req, res) {
  let f = 'file_name';
  if (req.method === 'POST') {
    const data = JSON.parse(req.body);
    f = data.path;
  }
  const filePath

Top comments (0)