PHPBuilder - Make a simple QuickTime reference movie

RSS Twitter
Snippets Other

Make a simple QuickTime reference movie

by: Stefan Powell
September 20, 2001

Version: 1.0

Type: Function

Category: Other

License: Artistic License

Description: Use this to output a simple QuickTime file that will point to a URL of another QuickTime playable file.

function makerefmovie($qturl) {
  $n = strlen($qturl);
  header('Content-type: video/quicktime');
  echo pack('Na4Na4Na4Na4xxxxa4Na*x',$n+45,'moov',$n+37,'rmra',
            $n+29,'rmda',$n+21,'rdrf','url ',$n+1,$qturl);

Comment and Contribute

Your comment has been submitted and is pending approval.

Stefan Powell



(Maximum characters: 1200). You have characters left.