hi guys

so im running jwplayer (version 5) for a music site, and im calling the player using this line:

<?php print swf($node->field_mp3_upload[0]['filepath']); ?>

i also have a cck image field associated with each audio node which i would like displayed in the player while the audio is playing, iv been trying to figure this out for the life of me but i cant. any ideas?

appreciated

Comments

prezaeis’s picture

ok i managed to create the following code:

<?php print swf($node->field_mp3_upload[0]['filepath'], array(
            'flashvars' => array('image' => 'http://www.mysite.com/' . ($node->field_content_image[0]['filepath']),
          )
        )); ?>

the problem im getting is quite weird, on some of my nodes the image displays fine and there are no errors. on other nodes i get this error:

Could not display the flash because sites/default/files/http://www.mysite.com/sites/default/files/musicimages/Sogand - Hichki Mesle Man.jpg does not appear to exist.

The audio file still plays but i get the above error and the image doesnt display. its weird because some nodes display the image and some dont, even though i have checked and all the nodes that display this error have their images in the right folder and the images are there and they exist!!!
also i can see that the file is calling "/sites/default/files" twice, but then why are some nodes displaying the image!!!!!!!!

id appreciate any help

prezaeis’s picture

ok sorry about this, i get ahead of myself, i fixed the problem lol

closed