Solved Unable to play mp4 videos
-
@ironicallygreg this sounds as an issue I just stumbled on. I run a private website based on Flask. I send the mp4 videos from the server with "Content-Disposition: attachment" http header. I just noticed that the browser starts to download the video, instead of playing it in the standard html <video> tag. Thus it looks like it's loading the video, and if I leave it long enough to download it, it would play. But that's not my intent. I'd guess that I'll have to send it as a blob but I'm not sure how to achieve it with the current libriraries I use so far.
http headers used:Connection: keep-alive Content-Disposition: attachment; filename=video.mp4; Content-Length: 8196 Content-Range: bytes 327680-335875/1832684406 Content-Type: video/mp4
This worked perfectly fine in previous versions. My current version is: 5.1.2567.49
It also works fine in other browsers(Firefox, Chrome).//MODEDIT: topic forked from cant run mp4 video file
-
@doctorg said in cant run mp4 video file:
@deadlious For me embedded HTML <video > element plays your videos with Content-Dosposition header.
Must be something on your PC causing not playing.
you turned out to be correct. Many thanks for your kind help!
after restarting the OS it got fixed. probably a faulty driver/decoder or smething... -
@deadlious said in cant run mp4 video file:
Content-Disposition: attachment; filename=video.mp4;
Why do you send this? Why do you think you need this header?
Content-Disposition: attachment
forces download instead of playing!
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-DispositionDo not send HTTP header Content-Disposition and all will be fine.
-
@doctorg said in cant run mp4 video file:
@deadlious said in cant run mp4 video file:
Content-Disposition: attachment; filename=video.mp4;
Why do you send this? Why do you think you need this header?
As you might guess - online tutorial...
I tried removing it, but there's no difference. It still tries to download the whole video before playing it. There was no such issue with previous versions of vivaldi and I'm using it since version 1.2. -
- A URL i can test
to check which HTTP headers are sent/receiped for the MP4 - Vivaldi version
- Windows version, Windows N or KN?
- Post (with </> button) text content of vivaldi://media-internals
- A URL i can test
-
@doctorg said in cant run mp4 video file:
- A URL i can test -> PM
to check which HTTP headers are sent/receiped for the MP4 - Vivaldi version -> 5.1.2567.49 (Stable channel) (64-bit)
- Windows version, Windows N or KN? -> win10 Pro 21H1
- Post (with </> button) text content of vivaldi://media-internals -> PM
- A URL i can test -> PM
-
@deadlious For me embedded HTML <video > element plays your videos with Content-Dosposition header.
Must be something on your PC causing not playing.
-
@doctorg said in cant run mp4 video file:
@deadlious For me embedded HTML <video > element plays your videos with Content-Dosposition header.
Must be something on your PC causing not playing.
you turned out to be correct. Many thanks for your kind help!
after restarting the OS it got fixed. probably a faulty driver/decoder or smething... -
@deadlious Enjoy watching videos.
-
Ppafflick marked this topic as a question on
-
Ppafflick has marked this topic as solved on