Jump to content

php, xml and flash


bob369

Recommended Posts

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..

 

Link to comment
Share on other sites

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

           

Link to comment
Share on other sites

              <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; ?> 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.