Need to add params to the actual player. Wondering if this could be added as textfields on the settings page. or a theme function.

Problem was, I was fixing an IE bug where i had to add a player windowed mode parameter (as opposed to a flashvar) to fix the playlist's visibility getting cut off (and the player's navigation bar cut off too, see attached pic). The problem was solved by using 'wmode' => 'opaque' (as opposed to 'wmode' => 'transparent', and here's the url i'm referencing: http://www.jeroenwijering.com/?thread=8756#msg56618

This worked fine for where I'd hand coded it into panels but now I have to hack the module and add this parameter in the section below to get 'wmode' to display 'opaque'. Could probably code it into the module as a default anyways since it fixed my IE problem.

(just one line, not too bad though)

**
 * builds all the params for displaying a player or a node
 * @param object $node is a node object
 * @param boolean $config_file 
 * @return array of flash player data
 * 
 */
function flvmediaplayer_build_player_data($node, $config_file = false) {
  // get dimensions for the flash player
  $size = preg_split('/x/i', flvmediaplayer_node_settings('flvmp_'. $node->type .'_size', '320x240', $node));
  
  // build the parms
  $params = array(
    'type' => 'movie',
    'width' => $size[0], 
    'height' => $size[1],
    'wmode' => 'opaque',  //fixes player navbar and playlists on IE RPMUTE
    'allowfullscreen' => flvmediaplayer_node_settings('flvmp_'. $node->type .'_fullscreen', false, $node) ? 'true' : 'false',
    'allowscriptaccess' => flvmediaplayer_node_settings('flvmp_'. $node->type .'_js', true, $node) ? 'true' : 'false',
  );
CommentFileSizeAuthor
transparent windowed mode in IE.jpg41.7 KBaterchin

Comments

aterchin’s picture

Component: Miscellaneous » Code

CORRECTION: windowed mode DOES help your player (i noticed it immediately with the administration_menu.module) but to fix the damn progress bar and playlist AND window aspect ratio from looking squeezed or stretched (only IE has this problem) from appearing all messed up like in my screenshot, you need to set height and width in the flashvars as well (same height and width as player) and then your displayheight flashvar OR your displaywidth flashvar, depending on horizontal or vertical playlist. in my case vertical.
partial code for flashvars:

    'width' => '400',
    'height' => '500',
    'displayheight' => '240',