
Hidding url video using PHP script
Dear JWplayer developpers,
I've search the whole day the support forum without an answer. Currently I can read normal mp4 videos, but I have an error "No playable sources found" when I try to read the video through a PHP url.
My JWplayer .setup :
file: url_stream,
provider: "video",
image: image_player_off,
autostart: false,
width: "100%",
aspectratio: "4:3",
abouttext:abouttext_player,
aboutlink:aboutlink_player
My little PHP script:
header("Accept-Ranges: bytes");
header("Content-type: video/mp4");
header("Content-Length: 24401570");
header("Cache-Control: no-cache, no-store, max-age=0, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Expires: Mon, 07 Jul 2014 00:00:00 GMT");
header("Pragma: no-cache");
header("Content-Transfer-Encoding: binary");
header("Content-Description: File Transfer");
readfile($movie_url);
The "PHP video" is watchable in a browser by the way.
Thank you in advance for any help on this issue :).