Hi sorry I want to show two different sizes of video in JW Media Player 3.
In admin/ settings/SWFTools/Wijering can define width and height but applies to all views
Can I display a different size for a block generated by views or how can I tell a size if is teaser or full node. ?

Try the css for local videos, but it takes
#block-views-items-block_2. emvideo-zzz_custom_url (width: 180px; margin: 0px 0px 0px 0px;)

From the tpl, for example block2 of the views vistavideos would not know what to display other parameters indicate different size to put in admin/settings/SWFTools/Wijering

Any ideas Sorry for my English,

Comments

doors’s picture

Have anybody figured this out as yet?

doknet’s picture

Hello If you have two ways to do this, change the size and bring the img.

a) Bring the img and change size , with content-field.tpl.php content-field-field_FIELDNAME-CONTENTTYPE.tpl.php
http://drupal.org/node/450946
1. Create a content type "video" with a field for your thumb - "video_thumb", and one for your flv - "video".
2. Copy the "content-field.tpl.php" template from the CCK theme folder into your theme folder.
3. Make a duplicate of "content-field.tpl.php" and rename it "content-field-field_video-video.tpl.php", so it will only apply to the FLV field within the video content type.
4. Within this new template, replace the line

print $item['view'] 

for
Working wicht flowplayer
1

2   print swf(
3     $item['filepath'], 
4     array(
5       'flashvars' => array('image' => $node->field_video_thumb['0']['filename'])
6     )
7   );
8 

Working wicht jw player
1

2   print swf(
3     $item['filepath'], 
4     array(
5       'othervars' => array('image' => $node->field_video_thumb['0']['filename'])
6     )
7   );
8 

2) Bring the img with node-CONTENTTYPE.tpl.php and change size.

if ($field_videolocal[0][filepath]) {
print swf(
$node->field_videolocal[0]['filepath'],
array(
'flashvars' => array(
'image' => 'videolocal/' . ($node->field_thumbnail[0]['filename']),
'params' => array('width' => '320', 'height' => '280'),
)
));
}

3 ) What I fail to do is to pass parameters (whidth, height and thumbnail(img) when I do a Views and choose the type ,
Style: Unformatted
Row style: Fields, both as to block as page views no showing thumbnail and .
always displays the default height and width put in player without thumbnail

doors’s picture

Sorry but it's still not so clear what I should do.

doors’s picture

What I am trying to do is to use the video in Views block. How do I change the size of the video then?

doors’s picture

I created a view template: "views-view-field--multimedia--block-3--field-flash-file-fid.tpl.php"

and added the following in it:

foreach ($fields as $id => $field):

print swf($field['filepath'], array('params' => array('width' => '300', 'height' => '230')))  

endforeach;

But it prints the player the size above but the video is not accessible.

doknet’s picture

I could not solve, so if it is to show the video in teaser or node, runs what I put in 1 or also what in section 2
I failed to show the video with thumbnail parameters en views type style field

doknet’s picture

Look here and tell me if you could integrate that code.. http://drupal.org/node/558338 . I could not

doors’s picture

I have been trying to figure out this thing from yesterday but it's just not working.

Can someone help please!

AlexanderPop’s picture

[swf file="yourfile.swf" params="height=xxx&&width=zzz"]
put it in block

Anonymous’s picture

Status: Active » Closed (duplicate)

marking this as a duplicate of #483524: Create SWF Tools "profiles"

different players settings in different scenarios can be set using the new "profiles" feature in swftools 3.x read more here.