Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4946

Video using RepeatableInputStream fails when using large file as input

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • None
    • 6.5.8.1, 9.6.0
    • General
    • Security Level: Jimmy
    • None

      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

       

            rudyhuang rudyhuang
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h