开发者

Is it possible to play a flash video stored in php?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜