Answer the question
In order to leave comments, you need to log in
How to correctly implement the return of a jsf 2.2 video / audio file?
Tell me where you can peep exactly the WORKING code, how to correctly implement the video display on the site.
The site itself will spin on apache (then I will transfer it to nginx), followed by wildfly. Showing video using html5 tags
Now implemented the return of the video, through the connection omnifaces
public void downloadFace(String fileName) throws IOException{
File file = new File("/opt/"+fileName);
Faces.sendFile(file, false);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question