Closed (fixed)
Project:
Dash Media Player
Version:
6.x-1.7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2009 at 22:22 UTC
Updated:
6 Oct 2009 at 03:20 UTC
Hello Travis,
I'm using the awesome Dash Player and everything works great. :) I only have two questions - I better create separate issues for both of them.
So here is the first questions:
I'd like to configure the width and height of the Dash Player individually in each of my tpl.php files. I found the embedwidth/embedheight params in the documentation and set it into my embed code so it looks like this:
if (!empty($node->field_video_embed[0]['view']) OR !empty($node->field_video_upload[0]['view'])) {
$params['node'] = $node->nid;
$params['volume'] = 100;
$params['embedwidth'] = 550;
$params['embedheight'] = 375;
print dashplayer_get_player( $params );
}
I can see that embedwidth and embedheight are rendered inside the flashvars of the Dash Player but the code seems to have the default values and my commands are ignored because the player width and height is still the same. Any ideas what's wrong?
Thanks a lot for your work! :)
Stefan
Comments
Comment #1
travist commentedThe embed width and height are used to size the player when someone copies the Embed code from the menu and then adds that to their page. This settings does not affect the size of the main player. I think what you are after is the following...
Let me know if that works.
Travis.
Comment #2
design.er commentedYeah, it works.
Thank you very much! :)