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
Comment #1
doors commentedHave anybody figured this out as yet?
Comment #2
doknet commentedHello 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
for
Working wicht flowplayer
1
Working wicht jw player
1
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
Comment #3
doors commentedSorry but it's still not so clear what I should do.
Comment #4
doors commentedWhat I am trying to do is to use the video in Views block. How do I change the size of the video then?
Comment #5
doors commentedI 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):endforeach;But it prints the player the size above but the video is not accessible.
Comment #6
doknet commentedI 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
Comment #7
doknet commentedLook here and tell me if you could integrate that code.. http://drupal.org/node/558338 . I could not
Comment #8
doors commentedI have been trying to figure out this thing from yesterday but it's just not working.
Can someone help please!
Comment #9
AlexanderPop commented[swf file="yourfile.swf" params="height=xxx&&width=zzz"]
put it in block
Comment #10
Anonymous (not verified) commentedmarking 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.