Steps to Reproduce
File file = new File("path\\test3.mp4"); Reader reader = RepeatableReader.getInstance(file); InputStream fileInputStream = new FileInputStream(file); AVideo content = new AVideo("test3.mp4", RepeatableInputStream.getInstance(fileInputStream)); Video videoViewer = new Video(); videoViewer.setHflex("1"); videoViewer.setVflex("1"); videoViewer.setControls(true); videoViewer.setContent(content); videoViewer.setParent(comp); videoViewer.play();
Using a large mp4 file (~100 MB)
Current Result
If the file is small, video will play.
If the file is large, video will not play, and the following message will show in server log:
2021-06-29 19:00:52.492:WARN::/app/zkau/view/z_D01zk_zPe2OQ6QpSkDJzuA/kIbG2/hvd/1/test3.mp4: java.io.IOException: Stream Closed
Expected Result
Video plays
Debug Information
Workaround
- relates to
-
ZK-4933 Video using RepeatableInputStream loads very long, Byte[] is instant
- Closed