Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Problem integrating a Flash video player


Reply

2 Posts   1151 Views

Avatar
PurpleSnowcone

4 March 2010 at 10:35am Community Member, 3 Posts

Hello!

I have a custom Flash Video player on my site and it works.. It grabs the video ID from the URL and begins to play the video, however, the buttons in the player don't do anything! They are active, for example, when you hover over them the button image changes to what it's suppose to, etc.. But when you click the buttons they just don't do anything. <confused>

I know that the player is fine because it works fine on my old site. I get the player into my code this way:

HomePage.ss:

$Player

HomePage.php:

function Player($play = 0) {
      
    return '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="480" height="300" id="Player" align="middle">
               <param name="allowScriptAccess" value="sameDomain" />
               <param name="allowFullScreen" value="true" />
               <param name="FlashVars" value="id=' . $play .'" />
               <param name="movie" value="Player.swf" />
               <param name="quality" value="high" />
               <param name="bgcolor" value="#000000" />   
               <embed src="Player.swf" FLashVars="sid=' . $playSid . '" quality="high" bgcolor="#000000" width="480" height="300" name="Player" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
               </object>';
}

Any thoughts?

Thanks!
-Joe

Avatar
martimiz

4 March 2010 at 10:52pm Forum Moderator, 1091 Posts

Hi - did you check the resulting code in the generated HTML?