What is going on here?

  1. A QT movie is loaded using the plugin. In the object/embed code the MovieName property is set to "<id>YOURSESSIONID</id>". This sets the qtlist for the QT movie when it loads. I made this example back with QT5 before the MOVIEQTLIST (I think this is what it is called) parameter which you could also use.
  2. The QT movie queries it's qtlist when it loads and displays the session id which in my example is 25.
  3. Clicking on the "Send Movie ID" link in the movie creates a url which passes the session id to a php script - "qtl_generator.php?id=25"
  4. The PHP script looks like this:
    <?php
    //Send to browser
    $buffer = '<?xml version="1.0"?>' . "\n" .
    '<?quicktime type="application/x-quicktime-media-link"?>' . "\n" .
    '<embed src="session_id_into_qtplayer.mov" autoplay="true" moviename="<id>'.$_GET['id'].'</id>" />';
    Header('Content-Type: application/x-quicktimeplayer');
    Header('Content-Length: '.strlen($buffer));
    Header('Content-disposition: inline; filename=test.qtl');
    print $buffer;
    ?>
  5. The movie that opens in QT player now has a movie qtlist with the <id> element. You can read this in and then query your PHP scripts using the correct session id.

- Trevor