L
L
lavezzi12016-02-26 11:55:18
HTML
lavezzi1, 2016-02-26 11:55:18

Video from the server is not playing, why?

Hello. I need to embed the video on the site.
HTML:

<video id="video_background" autoplay="" loop="loop" preload="auto" muted="">
    <source src="/video/video.mp4" type="video/mp4">
</video>

Through css everything is stretched. On the local server, everything works, reproduced as it should. I upload to heroku, it stops working. You click on the video through the developer panel, the black screen is the video control panel but it does not play. If you upload the video somewhere and insert a direct link - it works. What can be wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Ulanov, 2016-02-26
@antonsr98

what is written in the logs?

R
Roman Mirilaczvili, 2016-02-26
@2ord

The Heroku platform is designed to store code first and foremost. And for files, it's better to use some CDN like CloudFlare.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question