How to hide the file path in the media player using php

sameerjadhav
sameerjadhav used Ask the Experts™
on
I want to hide the actual audio/video file path from directly being downloaded from the flowplayer
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
you can make php script that reads the media file and it's sending it to the user

something like this

1. you have the movie.wmv
2. you have a php file that verify it fty file must be read (direct access or correct access)

3. the script after validation has to echo the corect headers ex:

header( 'Content-Type:video/x-ms-wmv' );
readfile( $file );

like this the media player will show the php script and not the media that it's playing

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial