hello

tinyplayer works excellent (thanks)
i want to use the player in a small "googlemap-popup" generated by gmaps. normally the complete teaser of a node is shown there.
this works, but the replacement of an audiofield with tinyplayer doesn't work ...

i know, this is a real special problem and it's not a problem of tinyplayer (more dependencies between the modules or some javascript/weight stuff, but maybe you have an idea ...

greetings momper

Comments

konsumer’s picture

This sounds like a really interesting usage of the module.

Without trying any code, or setting up a dev version of your setup, I would look in 3 places first to find the solution, any one of them might help.

Make sure that the "field display" section for the content-type under "teaser" is set to tinyplayer. You probably already did this, but it may work as expected, right out of the box.

If you already did this, or it didn't work:

In your theme for the teaser section (try using contemplate, it makes this sort of thing a bit easier) you can call the view function directly like this:

print tinyplayer_view($file_url);

You can use the contemplate UI to figure out what var should be put in, instead of $file_url.

Also, make sure to look at the field var in contemplate, I think it should put the same stuff in 'view' or something like that, so you can just print that instead.

If that doesn't work:

Have a look at the tinyplayer_view() function in tinyplayer.module, to see how it works. You can put what you need in your teaser template, and even bypass using swfobject completely (look at the generated HTML from swfobject on a regular node in firebug to get an idea of what it should look like) This isn't recommended, because IE requires the user to click, if it isn't generated by javascript, but may act as a last resort if you just can't get swfobject to play nice with gmaps.

Let me know how it works out.

momper’s picture

Status: Active » Fixed

hello konsumer,

A)
Make sure that the "field display" section for the content-type under "teaser" is set to tinyplayer. You probably already did this, but it may work as expected, right out of the box.

yes -> this i tried before, but it didn't work ...

B)
<?php print tinyplayer_view($file_url); ?>

this worked fine - this is the rapid test:

<?php
  $raw_movie = $node->field_audio[0]['filepath'];
  $movie = "/$raw_movie";
  print tinyplayer_view($movie);
?>

C) fortunately i didn't need this :)

thanks really a lot!!!!

greetings momper

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.