title: Split video file to stream from browser
body: <p>I split a video file into two using the <em><a href="https://www.npmjs.com/package/split-file" rel="nofollow noreferrer">split-file</a></em> module. 
  There are no file part extensions. They seem like: gan-1, gan-2</p>
  
  <p>I am hosting these two files on my own server.</p>
  
  <p><em><a href="http://bilketay.com/download/gan-1" rel="nofollow noreferrer">http://bilketay.com/download/gan-1</a></em></p>
  
  <p><em><a href="http://bilketay.com/download/gan-2" rel="nofollow noreferrer">http://bilketay.com/download/gan-2</a></em></p>
  
  <p>I try to stream these two files through the browser like a single video file. Like;</p>
  
  <pre><code>// Dependencies
  var express = require('express');
  var app = express();
  var CombinedStream = require('combined-stream2');
  var request = require('request');
  // Some routes
  app.get('/', function(req, res) {
    // Set header
    res.set({
      "Content-Type": 'video/mp4'
    });
    res.writeHead(200);
  
    var combinedStream = CombinedStream.create();
    // This function is to call gan-1 first, then gan-2
    var recursive = function(param) {
        var req = request('http://bilketay.com/download/' + param);
        // First add gan-1, then gan-2
        combinedStream.append(req);
        req.on('end', function() {
          if (param != 'gan-2') {
            recursive('gan-2')
          }
        });
      }
      // Start recursive
    recursive('gan-1');
    // Start stream browser
    // But, It does not start until it is completely loaded :(
    combinedStream.pipe(res);
  });
  // Listen port
  app.listen(3000);
  </code></pre>
  
  <p>I created this code with restricted node.js information. No problem for me, but I think Google Chrome is different. :)</p>
  
  <p>The problem is, the two parts do not stream without being loaded. The stream starts after two parts have been uploaded. What I want to do is start the stream right away. A short note; gan-1 and gan-2 files are working locally. But it does not work on the remote server. What am I doing wrong?</p>
  
  <p>I used the <em><a href="https://www.npmjs.com/package/combined-stream2" rel="nofollow noreferrer">combined-stream2</a></em> module to merge the parts. 
  This module simplifies streaming by adding two different files. But because I can not get the result I want, I might have used it wrong.</p>
  
  <p>In short, I want to stream two different files through the browser, respectively.</p>
  
  <p>I need the help of ninjas. Thank you.</p>
  
  <p>Screen shot describing the problem;</p>
  
  <p><a href="http://bilketay.com/download/stream.gif" rel="nofollow noreferrer">stream.gif</a></p>