I updated from audio 5.x-0.1 to audio 5.x-0.3 and unfortunately players did not show up. And also when clicking on any song's page it was empty. I tried audio 5.x-0.2 too - same problems. Everything worked when I switched back to audio 5.x-0.1.

Comments

drewish’s picture

Category: bug » support

couple of things. did you install the required views module? and how about a link so we can look at what's actually happening.

akula@dev.lawer.id.au_drupaltest’s picture

I am having a smiler problem... but this is one of the first modules I have installed and I haven't ever done that much with drupal so it could be a problem between keyboard and chair.

However the problem is that whenever you click on the play link for a mp3 track it calls the computers local handler for the format as opposed to the flash player. It appears as if this URL (http://dev.lawer.id.au/drupaltest/audio/play/3) is resolving to the file and not to a handler which loads the player with that URL. I am sorry I can't give you more detail then that at the moment, but my knowledge of drupal internals is non-existent.

Drupal Version : 5.1
Site address : dev.lawer.id.au/drupaltest
GetID3 version : 1.7.7
Views Version : 5.x-1.5

Problem occured using both Firefox 2.0.0.1 and IE 7.0.5730.11.

Anyway, Thanks in advance for the help.

yngens’s picture

Drewish, I would gladly provide a link, but that was done on production site, which I can not update to 5.x-0.3 again to show the problem. But if we were in the net at the same time I could quickly switch there and back.

drewish’s picture

akula, your theme seems a little wierd. all the bullets are smashed over at the right. but yeah you don't seem to have the player. i'll try to look into it a bit more later.

mrtunes’s picture

same problem:
audio - 5.x -0.3
views - 5.x - 1.5

drewish’s picture

are you getting messages that your audio nodes are not compatible with the flash players when you edit them?

mrtunes’s picture

i'm trying 5.x-0.2 as you know, but when 0.3 was running i never encoutered a message of that sort. i'm sure people who are more deep into their projects can comment on this better than i can :-)

mrtunes’s picture

ok a bit more info on my problem - i went down to 5.x-0.2, had the same issue. then i went down to 5.x-0.1 and also had the issue. from what i can tell, the error message i got was that "this player only supports files of this sample rate" type message even though my file WAS in 44.1
then when the node was posted, click to play file does not trigger quicktime, instead it prompted me to download the file. when i agreed to download it, the filename it was given was one of those temp files - ie a5993gasd.mp3
so it appears my problem is not related to the version of the audio.module

mrtunes’s picture

so what fixed the problem for me was making sure the GetID3 system was setup properly. i overlooked it before and i guess that caused a lot of problems for the audio module to properly analyze the file before going into the player. well it's fixed for now and i'm a happy camper!

jorditr’s picture

Not working for me neither. I've upgraded the views-bonus module with some code I've found on another thread and at least is not giving me the annoying message related to the views-bonus module, but still players not appearing at all.

BTW, I havent seen described on any place that (well, maybe there are more threads that the ones I've read), where there should be a player there's a simple "Click to play" text that when clicked invites to download a file, and what it downloads is a file with no extension and the number of the node. The lower "Download audio file" link is downloading the proper mp3 file with no problem. Is it the proper behaviour? I guess it's not.

Any clue?

drewish’s picture

Status: Active » Postponed (maintainer needs more info)

please try out the -dev version.

jorditr’s picture

I was already using the last dev version.

jorditr’s picture

I don't know if that may help but looking at the code around the "Click to play" link what I see is that:

<ul class="audio-info"><li><span class="audio"><a href="http://localhost/llunasol3/es/audio/play/87">Click to play</a></span>
</li><li><strong>Artist:</strong> <a href="/

There is simply a link, there's no any code pointing to anything else that maybe was not found and thus not rendered on page...

Luneh’s picture

Hi,

I have the same problem on my local in dev website. I keep having the "Click to play" link instead of the player.

I use audio 5.x-1.x-dev (latest) and views 5.x-1.5.

I checked the code a little and it appears that the "Click to play" link is taken by default if something else does not work?

/**
 * Build HTML to play an audio node.
 *
 * @param $node
 *   node object
 * @return
 *   HTML to play the audio tracks.
 */
function audio_get_node_player($node) {
  $output = '';
  // if we've got a URL, setup a player
  if (_audio_allow_play($node)) {
    $format = $node->audio_fileinfo['fileformat'];
    $playername = variable_get('audio_player_'. $format, '1pixelout');
    $player = audio_get_players('name', $playername);
    // try to use the requested player...
    $output = theme($player['theme_node'], $node);
    if (!$output) {
      // ...if that doesn't work out, use the generic one
      $output = theme('audio_default_node_player', $node);
    }
  }
  return $output;
}

No error message when I try to update the files.
I activated the GetID3 module even if it should not be necessary (is it?). It is found by the system.

Just to be sure it was not my theme, I tried with bluemarine and chameleon as well. Same thing.

Any idea?

drewish’s picture

Version: 5.x-0.3 » 5.x-1.x-dev

JordiTR, then update the status ;)

Can you guys make sure you've got a player selected the players settings page: /admin/settings/audio/players

jorditr’s picture

Sorry drewish about not updating the status, I didn't know, and even don't know which :-)

I did selected the player on the settings page, in fact serveral times checking different possibilites, I'm quite experienced with Drupal, despite I could have forgott something... But I've rechecked several times my configuration.

First I thought that maybe it had not found the players directory and thus could not render the player but at least if finds it on the settings page in order to show every corresponding png.

Luneh’s picture

Hi,

Yes I selected a player on the admin/settings/audio/players page. I even tried with several of them without any success.

I checked my files and can confirm that the players' files are on my system and apparently at the right place (modules/audio/players). I can even call the swf file when entering the address http://127.0.0.1/audio/players/xspf_slim.swf in my browser, it works.

Luneh’s picture

Sorry, the address I displayed above is wrong. The address I use to call the player is:

http://127.0.0.1/modules/audio/players/xspf_slim.swf

drewish’s picture

do either of you have public sites i could look at to see to examine the HTML that's being generated?

zirafa’s picture

You guys also sure that you are specifying MP3 as the file format and the audio metadata has the correct sampling frequency (44100 Hz, 22050 hz, 11025 hz)...the player doesn't appear if these aren't set in the audio node.

Luneh’s picture

Hi,

Drewish sorry, the website is still not online, but I hope it will be for several tests this week-end.

Zirafa, now that you speak about it... mp3 is indicated under allowed extensions, this should then be OK. But on the other hand, even if the information for the file is retrieved by getID3 and is shown properly on the "edit" page, information such as Length and Format are not displayed on my "view" page.

It gives me something like that:

Click to play
Artist: blablabla
Title: blablabla
Length: minutes (1.61 Mo)
Format: 0kHz 0Kbps ()

Hope this helps. :)

vm’s picture

What is the sampling frequency and bitrate of the file you are trying to upload ? don't rely on ID3 to get it for you, are you running 128bit @ 44100 Hz, if not you need to have the audio converted to the proper sampling rates so that flash can play them.

what version of ID3 are you running ?

vm’s picture

clarification:

128 bit is not the only bit rate that can be used either, as zirafa has stated (44100 Hz, 22050 hz, 11025 hz)... are the only sampling rates Flash can use properly.

Luneh’s picture

Bingo, here we are. The bitrate of my audio files are apparently not compatible, 192kbps. I uploaded a file with a bitrate of 128kbps in order to test and it works. Thanks.

Is there a way to have it converted when the files are uploaded or do I have to do it locally before I upload?

drewish’s picture

Status: Postponed (maintainer needs more info) » Fixed

you'll have to do it before uploading.

killes@www.drop.org’s picture

Status: Fixed » Closed (fixed)