Answer the question
In order to leave comments, you need to log in
How to use html5 (video) in jsf application?
Good afternoon.
View construction
<body>.
<video controls preload="auto" autoplay>
<source src="-xiGLuG3.mp4" type="video/mp4"/>
</video>
</body>
<video controls="controls" preload="auto" autoplay="autoplay">
<source src="-xiGLuG3.mp4" type="video/mp4" />
</video>
Answer the question
In order to leave comments, you need to log in
I did a bunch of experiments here, and I don’t understand anything at all.
if you specify the path to another server - not wildfly, but to apach standing next to it, then everything turns out to be super - the video is shown. But if the link goes to wildfly, then bummer. and I tried to indicate it in different ways:
None of these methods work - and the file itself is available for download ... And where to dig?
PS. The issue was resolved. I do not give the file with the video directly, but through the stream, since it was actually planned. Thus - it works. Just adding a mime type for mp4 to web.xml was not enough.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question