hiding the file path in the media player

07-12-09, 05:04 PM
|
|
Newbie Coder
|
|
Join Date: Oct 2008
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
hiding the file path in the media player
hi everyone,
it there any possible way to hide the video file path in the media player that runs on html page ?
thankx in advance ,
|

07-12-09, 06:10 PM
|
 |
-
|
|
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
|
|
You could use some sort of encoding - but since it is all javascript, anyone can decode it.
Since you posted this under PHP - you could copy the video file to a temporary file and deliver the temporary file to the client. Be sure to clear the temporary files periodically to avoid filling up the disk.
|

07-12-09, 07:56 PM
|
|
Newbie Coder
|
|
Join Date: Oct 2008
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I've liked the idea of temporary file. its cool. thanks man that was so helpful.
|

07-12-09, 08:06 PM
|
|
Newbie Coder
|
|
Join Date: Oct 2008
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Mmmm,
if i made a temporary video file or sound file and pass it to the media player. the page loads and the media player will start buffering. the script ends the temporary file is removed. but the media was buffering. Wont that stop the media player from buffering , cause the file is not there now, right ?
|

07-12-09, 08:26 PM
|
 |
-
|
|
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
|
|
This command will delete all files that are more than 24 minutes old - it should do the trick for you.
cd /path/to/sessions; find -cmin +24 | xargs rm;
You'll want to run it as a cron job, every 5 minutes should do.
So, the temporary file will exist for about 30 minutes, then be removed.
|

07-12-09, 08:27 PM
|
|
Newbie Coder
|
|
Join Date: Oct 2008
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i've looked over and found this code
how can i pass it to the <object> cause i think it accept file only. how to do this ?
again, thank you so much for your help.
|

07-12-09, 10:14 PM
|
|
Newbie Coder
|
|
Join Date: Oct 2008
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi wirehopper,
i just sow your last reply. that a great sullotion for the problem. but i don't know how to do corn jub thing. i'll try to google on that. but what about the the problem in the last reply of mine ?
thankx a lot you've been so helpful
|

07-13-09, 09:12 AM
|
|
Newbie Coder
|
|
Join Date: Oct 2008
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i did the temprory file thing with the function tempnam() . but it generate a random name after the file name extinsion. the code is :
this is the source i get back :
see the source ! /tmp/test.mp3KDCnKF and the player dont start cause its not an MP3 file.
thankx in advance,
|

07-13-09, 09:27 AM
|
|
Newbie Coder
|
|
Join Date: Oct 2008
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i used this code, and it working great. but the file is not playing. i don't know way !!
the source i get back is this :
|

07-13-09, 09:07 PM
|
|
Newbie Coder
|
|
Join Date: Oct 2008
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i've solved it.
i created a new dir to store the files in it. and used cornjob to remove it every 10 minuts as you talled me . thankx a lot 
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|