JW Player lido a partir do php

Eu sou totalmente novo para o PHP e JW player.

Eu tenho o seguinte código que lê um arquivo de vídeo em php e o reproduz como um arquivo de vídeo no navegador:

loadfile.php

<?php
    header("pragma : no-cache");
    header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
    header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
    header("Content-Description: File Transfer");
    header("Content-Type: video/mp4");
    header("Content-Location: videos/testvid.mp4");
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: ".filesize("videos/testvid.mp4"));
    readfile("videos/testvid.mp4");
?>

JW player pode reproduzir o arquivo de vídeo por caminho direto como aqui:

<div id="mediaplayer"></div>
        <script type="text/javascript">
            jwplayer('mediaplayer').setup({
                'flashplayer': 'jwplayer/jwplayer.swf',
                'file': 'videos/testvid.mp4',
                'id': 'playerID',
                'width': '480',
                'height': '320'
            });
        </script>

No entanto, eu preciso de jw player para reproduzir o vídeo em loadfile.php e não por caminho direto. Em outras palavras, eu preciso passar o vídeo para o JW após streaming e lê-lo em php. Como posso fazer isso?

Atualizar:

Estou usando o JW 6

questionAnswers(2)

yourAnswerToTheQuestion