youtube videos are embedding fine, though. But mp3 never work. Is there currently an issue with mp3 embedding ? using this configuration:

return array(
'video/x-flv' => array(
'path' => 'sites/all/libraries/jplayer/Jplayer.swf',
'offsetHeight' => 24,
'fileName' => 'file',
),
'audio/mpeg' => array(
'path' => 'sites/all/libraries/jplayer/Jplayer.swf',
'offsetHeight' => 0,
'fileName' => 'file',
'defaultWidth' => 280,
'defaultHeight' => 24,
),
);

what could be wrong ? is that a bug with configuration or with the module itself ?

Comments

anrikun’s picture

What is the name of the player + version (sites/all/libraries/jplayer/Jplayer.swf) you are using for flv and mp3?

mitek’s picture

Here is the header from jquery.jplayer.min.js file in sites/all/libraries/jplayer/ :

/*
* jPlayer Plugin for jQuery JavaScript Library
* http://www.happyworm.com/jquery/jplayer
*
* Copyright (c) 2009 - 2010 Happyworm Ltd
* Dual licensed under the MIT and GPL licenses.
* - http://www.opensource.org/licenses/mit-license.php
* - http://www.gnu.org/copyleft/gpl.html
*
* Author: Mark J Panaghiston
* Version: 2.0.0
* Date: 20th December 2010
*/

is that too old ?

mitek’s picture

The exact name of the player is : sites/all/libraries/jplayer/Jplayer.swf
As I had mentioned, it works just fine for videos.

mitek’s picture

I also noticed that the file name is pasted as %2Fsites%2Fdefault%2Ffiles%2Faudio%2Ftest001.mp3

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" height="24" width="280"><param name="flashvars" value="file=%2Fsites%2Fdefault%2Ffiles%2Faudio%2Ftest001.mp3" /><param name="allowfullscreen" value="true" /><param name="quality" value="high" /><param name="movie" value="/sites/all/libraries/jplayer/Jplayer.swf" /><!--[if !IE]>--><object data="/sites/all/libraries/jplayer/Jplayer.swf" height="24" type="application/x-shockwave-flash" width="280"><param name="flashvars" value="file=%2Fsites%2Fdefault%2Ffiles%2Faudio%2Ftest001.mp3" /><param name="allowfullscreen" value="true" /><param name="quality" value="high" /><!--<![endif]--><!--[if !IE]>--></object><!--<![endif]--></object>

is that normal ?

rdiaswjb’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta1

I had the same thing happen with the drupal 7 beta version currently posted.
I just admitted defeat after awhile and opted for sample configuration 2.
Of course, the "player.swf" file in the copy and paste sample config pointed to the wrong directory (maybe they updated the WordPress Audio Standalone player) for player.swf

This is what my configuration looks like (btw, I'm using JW Player for the flv part):

return array(
'video/x-flv' => array(
'path' => 'sites/all/libraries/mediaplayer/mediaplayer-5.7-viral/player.swf',
'offsetHeight' => 24,
'fileName' => 'file',
),
'audio/mpeg' => array(
'path' => 'sites/all/libraries/audio-player/assets/player.swf',
'offsetHeight' => 0,
'fileName' => 'soundFile',
'defaultWidth' => 290,
'defaultHeight' => 24,
),
);

mitek’s picture

Yes, rdiaswjb, that does seem to work. It looks like the mp3 bug in question affects only the jplayer, but not the audio player. Thank you for bringing this to attention.

D.

anrikun’s picture

Title: when embedding mp3 file, get a blank rectangle 280x24 » FLV and MP3: Test & list which players are currently supported and add support for more players
Component: Code » Miscellaneous
Category: bug » task

Well I need to test and list which players are supported and add support for more players.
Currently, only JWPlayer and One-pixel audio player have been tested and are fully supported.
Flowplayer is partially supported.
Help is welcome.

boban_dj’s picture

Title: FLV and MP3: Test & list which players are currently supported and add support for more players » FLV and MP3, and additional image folders
Version: 7.x-1.x-dev » 7.x-1.0-beta1

Sorry, thank you

anrikun’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev

Please post this as a separate support request. This has nothing to do with the original issue.