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
Comment #1
anrikun commentedWhat is the name of the player + version (
sites/all/libraries/jplayer/Jplayer.swf) you are using for flv and mp3?Comment #2
mitek commentedHere 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 ?
Comment #3
mitek commentedThe exact name of the player is : sites/all/libraries/jplayer/Jplayer.swf
As I had mentioned, it works just fine for videos.
Comment #4
mitek commentedI also noticed that the file name is pasted as %2Fsites%2Fdefault%2Ffiles%2Faudio%2Ftest001.mp3
is that normal ?
Comment #5
rdiaswjb commentedI 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,
),
);
Comment #6
mitek commentedYes, 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.
Comment #7
anrikun commentedWell 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.
Comment #8
boban_dj commentedSorry, thank you
Comment #9
anrikun commentedPlease post this as a separate support request. This has nothing to do with the original issue.