+1
Forum user: hesesses
Basic information
| Registered | Oct 14, 2008 |
| Last login | Jan 11, 2010 |
| Forum posts | 1 |
| Direct URL | http://www.flowplayer.org/forum/users/5774 |
Latest forum posts
Hi,
Is it possible to play videos outside the wwwroot? I have tried to use php-script for that, but nothing seems to work. Any ideas?
***update***
This works:
clip: {
url: 'test.php'
}
This doesnt:
clip: {
url: 'test.php?video=video.mp4'
}
test.php
200, Stream not found, NetStream.Play.StreamNotFound, clip: '[Clip] 'test.php?video=video.mp4''
Is it possible to play videos outside the wwwroot? I have tried to use php-script for that, but nothing seems to work. Any ideas?
***update***
This works:
clip: {
url: 'test.php'
}
This doesnt:
clip: {
url: 'test.php?video=video.mp4'
}
test.php
$file = "../video.mp4" // this works
$file = "../". $_GET['video']; //reading file outside wwwroot
header("content-type: video/mp4");
readfile($file);
200, Stream not found, NetStream.Play.StreamNotFound, clip: '[Clip] 'test.php?video=video.mp4''