+ 2
Video on webpage is not playing.
I have uploaded a video file (mp4) on a website and I want to play it using <video>. But the video is not starting. The elements/tags src are correct, the file target is correct. Even when I open the video file directly with its path link, its not playing. I can see it but not playing. Its like something blocks it. There is no error message. When clicking on play, it does not start. What could be the reason? --> when I use the same index.html and video src folder locally, its playing correctly. Issue is only online.
3 odpowiedzi
+ 1
Insert video address more specifically, this is a common error....
+ 1
You mean the full path of the webserver? I tried, it says that that kind of mime format is not supported. Tried to allow mp4 with htaccess, but still not working.
or what do you mean with "more specifically"?
+ 1
Not playing, even manually or only autoplay don't work?
I think that autoplay (at least on mobile devices) is disallowed (you could play a sound or a video only on a user action -- to avoid annoying him).
Else (if it's not a problem related to auto-play) are the video and the html stored on same domain? If not, it may be a cross-domain security wich disallow use of video from another domain.
... or a bad url (src) reference? (as locally your files are working): when open the video directly with path, did you use the local path or the uploaded file url? if 2nd case, have you access to the file and not able to play it or you'll get an error?
Share the link of your uploaded video (if not sensible), the code of your video tag, so we could investigate more deeply ;)