flv_play.php

来自「php网页设计」· PHP 代码 · 共 21 行

PHP
21
字号
<?# FLV player - plays the FLV file created to preview video resources.$flashpath="../download.php?noattach=true&ref=$ref&ext=flv";$flashpath=urlencode($flashpath);$thumb=get_resource_path($ref,"pre",false,"jpg");$thumb=urlencode($thumb);# Choose a colour based on the theme.# This is quite hacky, and ideally of course this would be CSS based, but the FLV player requires that the colour# is passed as a parameter.# The default is a neutral grey which should be acceptable for most user generated themes.$theme=(isset($userfixedtheme) && $userfixedtheme!="")?$userfixedtheme:getval("colourcss","greyblu");$colour="505050";if ($theme=="greyblu") {$colour="446693";}?><object type="application/x-shockwave-flash" data="flashplayer/player_flv.swf" width="480" height="270" class="Picture">     <param name="movie" value="flashplayer/player_flv.swf" />     <param name="FlashVars" value="flv=<?=$flashpath?>&amp;width=480&amp;height=270&amp;startimage=<?=$thumb?>&amp;margin=0&amp;buffer=10&amp;autoload=1&amp;showstop=1&amp;playercolor=<?=$colour?>" /></object>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?