bob369 Posted August 20, 2007 Share Posted August 20, 2007 Hi, i was strucked with a problem. i have a video with captioning. video is a flash file and captioning is in XML file they are working really fine. now what the problem is:: I am getting the path of xml file through php as well as video(flv) file path through php. the video works well but the xml file path which i got through php( from database) is not working. the captioning part (xml file) is not working now only the video is displayed... could anyone please help me to get out this situation..is the problem with php and xml or php,xml and flash thanks in advance.. Quote Link to comment https://forums.phpfreaks.com/topic/65859-php-xml-and-flash/ Share on other sites More sharing options...
php_tom Posted August 20, 2007 Share Posted August 20, 2007 Try typing in the path by hand to make sure that the xml file exists. Assuming it does, post the part of your code that looks for the xml file and we'll take a look at it. Quote Link to comment https://forums.phpfreaks.com/topic/65859-php-xml-and-flash/#findComment-329141 Share on other sites More sharing options...
bob369 Posted August 20, 2007 Author Share Posted August 20, 2007 i typed the path manually .. it is executing perfect. now the problem is just i got the path from the database and placing it in the <object> tag in HTML. <object classid="CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000" id=ccPlayer width=340 height=376> <param name=allowScriptAccess value="" /> <param name=movie value="ccPlayer.swf?ccEmbeddedCaptions=false&ccVideoName= <?php echo $video_array[$value]; ?> &ccCaptionFilename= <?php echo $xml_value; ?> &ccCaptionLanguage=en" /> <param name=quality value=High /> <param name=bgcolor value="" /> <param name="_cx" value=8996 /> <param name="_cy" value=9948 /> <param name=FlashVars value="" /> <param name=Src value="" /> <param name=WMode value=Window /> <param name=Play value=-1 /> <param name=Loop value=-1 /> <param name=SAlign value="" /> <param name=Menu value=-1 /> <param name=Base value="" /> <param name=Scale value=ShowAll /> <param name=DeviceFont value=0 /> <param name=EmbedMovie value=0 /> <param name=SWRemote value="" /> <param name=MovieData value="" /> <param name=SeamlessTabbing value=1 /> <param name=Profile value=0 /> <param name=ProfileAddress value="" /> <param name=ProfilePort value=0 /> <param name=AllowNetworking value=all /> <embed src="ccPlayer.swf?ccEmbeddedCaptions=false&ccVideoName= <?php echo $video_array[$value]; ?> &ccCaptionFilename= <?php echo $xml_value; ?> &ccCaptionLanguage=en" quality="high" bgcolor="#cccccc" width="340" height="376" name="ccPlayer" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </center> $xml_value ....variable contains the xml path retrieved from the database Quote Link to comment https://forums.phpfreaks.com/topic/65859-php-xml-and-flash/#findComment-329184 Share on other sites More sharing options...
php_tom Posted August 20, 2007 Share Posted August 20, 2007 <embed src="ccPlayer.swf?ccEmbeddedCaptions=false&ccVideoName= <?php echo $video_array[$value]; ?> &ccCaptionFilename= <?php echo $xml_value; ?> You have a lot of whitespace in there... I'm not sure, but this could be a problem. Try gluing it all together, like so: <embed src="ccPlayer.swf?ccEmbeddedCaptions=false&ccVideoName=<?php echo $video_array[$value]; ?>&ccCaptionFilename=<?php echo $xml_value; ?> Quote Link to comment https://forums.phpfreaks.com/topic/65859-php-xml-and-flash/#findComment-329190 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.