Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API to download MS Teams video recordings

Is there any programmatic way to access and download the already-stored video recordings from MS Teams? I have been reading MS Graph API documentation, but could not find anything related to this.

like image 921
KurroGB Avatar asked Sep 06 '25 07:09

KurroGB


1 Answers

There is no specific API or chrome extension for this but it is possible using destreamer. Prerequisite: Node 8.0 or higher

Steps for downloading the video:

  1. Download zip files of these repositories Destreamer Youtube-dl

  2. Now in a new folder copy all the contents of these repositories. The folder structure is like Folder Structure. Do not worry about files with same names as they are not important. So when windows asks you to decide what to do just skip it.

  3. Download ffmpeg as described in this link ffmpeg download. Also add it to the environment variables as described in this link.

  4. Download chromium from this link chromium and just paste the folder present in zip file anywhere.

  5. In the folder described in step 2 open src/destreamer.ts and edit code as code edit on line 55 in the pic and replace the path with your own chromium path.

  6. Open cmd and navigate to the main folder that we created in step 1 and run npm install. After successful installation of node_modules run npm run build. After successful build run
    destreamer.cmd -i "https://web.microsoftstream.com/video/VIDEO-1". (You need double quotations for link). This will launch chromium and ask you to login. Enter your MS account credentials. On successful login your download will start.

Note: In powershell you need to write ./destreamer.cmd instead of destreamer.cmd. In linux you need to write ./destreamer.sh.

You can also refer to destreamer github repository described in step 1 for other download options such as custom path download, re-encode, different format, etc.

like image 67
vpmanwani Avatar answered Sep 07 '25 20:09

vpmanwani