question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sendFile not working with video files

See original GitHub issue

I’m tring to send an mp4 file without success. The api doesn’t return any error, ideas? @danielcardeenas

Error thrown:

Uncaught (in promise) Error: InvalidMediaFileType: ExtendableError
    at t.value [as sendToChat]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
danielcardeenascommented, Apr 10, 2020

In order to send videos, you need to use a chrome instance. Chromium does not support that feature

1reaction
robertsLandocommented, Apr 9, 2020

Perfect! I suggest to keep tests so we can quick test things if get broken

——————

Daniel - Software Engineer

Support me at: Github sponsors

On 9 Apr 2020, at 19:10, Daniel Cardenas notifications@github.com wrote:

Fixed:

I just messed up with the useChrome flag, now its using Chromium as default

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NodeJS res.sendFile not sending images or directorys
Put all your static files inside of a public directory and serve them like this. var express = require("express"); var app = express();...
Read more >
sendFile() sets wrong video content type · Issue #2354 - GitHub
For weird reasons sendFile() sets the content type to video/webm when sending an MP4 video. Happens on IE10 and Firefox latest version.
Read more >
Express.js - SendFile - YouTube
Learn how to send down an HTML file from an Express route! ... Your browser can't play this video. ... Express.js - SendFile....
Read more >
Express.js res.sendFile() Function - GeeksforGeeks
The res.sendFile() function basically transfers the file at the given path and it sets the Content-Type response HTTP header field based on ...
Read more >
Using Express res.sendFile() Function to Serve Files
sendFile () method accepts absolute paths only. You can use express. static() to set the path. Video Player is loading.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found