What is going on here?
- 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.
- The QT movie queries it's qtlist when it loads and displays the session id which in my example is 25.
- 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"
- 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;
?>
-
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