| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2010-02-10 10:16 UTC] pajoye@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 09:00:01 2025 UTC | 
Description: ------------ <script type="text/javascript" src="../flashplayer/swfobject.js"></script> <div id="flashplayer"></div> <div id="container" style="padding-left:4px"></div> <script type="text/javascript"> var file = "<?php echo $videoName!='' ? $videoName : ''; ?>"; // for uploaded file name. //var utube = "<?php echo $youLink!='' ? $youLink : ''; ?>"; // for utube link.. alert(file) var s1 = new swf("../flashplayer/mediaplayer.swf","mediaplayer","500","320","8"); //var s1 = new SWFObject("../flashplayer/mediaplayer.swf","mediaplayer","500","320","8"); s1.addParam("allowfullscreen","true"); s1.addVariable("width","500"); s1.addVariable("height","320"); s1.addVariable("autostart","false"); // 'true' terurn auto run s1.addVariable("repeat","true"); // 'true' terurn auto run s1.addVariable("autoPlay", "no"); // s1.addVariable("soundPath", "<?php echo VIDEO_PATH.$getVideo['video_filename']; ?>"); //s1.write("flashplayer"); alert(file) // if(utube == '') s1.addVariable("file",file); // else // s1.addVariable("file",utube); s1.write("container"); </script> Reproduce code: --------------- --- From manual page: function.swf-actionplay#Description ---