To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 4543

Show
Ignore:
Timestamp:
02/03/12 16:14:32 (4 months ago)
Author:
tboutell
Message:

Fix for #1216: the height should be fixed at 81 pixels (soundcloud's only supported height) and the wmode should be respected in both object and embed cases. Also the width should be the passed width and not 100% in both object and embed cases. Thanks to awssmith

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/branches/1.5/lib/embedService/aSoundCloud.class.php

    r3938 r4543  
    108108  public function embed($id, $width, $height, $title='', $wmode='opaque', $autoplay=false) 
    109109  { 
     110    // Height is fixed at 81 pixels because soundcloud has no provision for any other height. 
     111    // wmode is now passed through properly, also width. Thanks to awssmith 
    110112return <<<EOT 
    111 <object height="$height" width="$width"> 
     113<object height="81" width="$width"> 
     114    <param name="wmode" value="$wmode"></param> 
    112115    <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F$id"></param> 
    113116    <param name="allowscriptaccess" value="always"></param> 
    114     <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F$id" type="application/x-shockwave-flash" width="100%"></embed> 
     117    <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F$id" type="application/x-shockwave-flash" width="$width" wmode="$wmode"></embed> 
    115118</object> 
    116119EOT;