Suppose I have some videos stored in a MySQL database.
How do I play those videos on开发者_开发百科 demand using flash.You can use PHP to serve content of any type. For flash, I assume you could use something like:
<?php
$video = get_video_contents_from_db();
header('Content-type: application/x-shockwave-flash');
die($video);
Where get_video_contents_from_db()
is some function that returns the contents of the video you have stored in your database. You might also need to specify additional headers, such as Content-length, but that is the general idea.
精彩评论