Jump to content

Working with Quicktime files


getwiththeprogram

Recommended Posts

I'm not sure if this is the appropriate forum to post this question but here goes.

I need to give members to my site the option to either view (play), or save to their hard drive .mov files.

 

I want to know how do those sites that sell audio/video media create those links that let you play the file (preview before you buy button usually)

Is it a software that enables this function?

 

Thanks 

Link to comment
Share on other sites

Hello getwiththeprogram,

I'm 70% sure about the following:

 

If you don't have Quicktime professional version, and have a quicktime video embedded in the page, you can watch the file without option of downloading it. However, it may still download to your browser cache? (not sure on that part). If you have the professional version of Quicktime, you also have the option of saving the file as something from the player itself.

 

If you link to this file directly, left clicking on the link will take the browser to a "page" that plays the video. Right-clicking wil give the option to download the file.

 

One way that people protect their videos while on the site is making the samples Flash video. It gives less playback and saving options.

 

To force a download in php, I found the following through a google search, adding my own small touches:

http://lists.evolt.org/archive/Week-of-Mon-20050214/169427.html

 

<?php

//make sure this is near the top of your script before data is sent to the browser
$filepath = "movies/movie.mov";
$filename = "movie.mov":
Header( "Content-Type: application/octet-stream" );
Header( "Content-Length:" . filesize( $filepath ) );
Header( "Content-Disposition: attatchment; filename=$filename" );
readfile( $filepath );

?>

 

Take care

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.