I downloaded the player's plugin and I installed in /sites/all/libraries/jplayer. I still get the following error, even when the player is working fine:
"Missing the jPlayer library. Please download jPlayer library and extract it into the /sites/all/libraries/jplayer directory".
please let me know how to install the library correctly because I can not figure out what is wrong.
admin/config/media/jplayer also gives an error:
"Either the directory specified does not seem to contain the jPlayer library, or you are not using version 2 of jPlayer. Check to make sure that the jquery.player.min.js file is located within this directory".
I only copied the following files to /sites/all/libraries/jplayer:
sites/all/libraries/jplayer/jquery.jplayer.js
sites/all/libraries/jplayer/jquery.jplayer.min.js
sites/all/libraries/jplayer/jquery.jplayer.swf
| Comment | File | Size | Author |
|---|---|---|---|
| #30 | jplayer.module-Missing-jPlayer-library-2419061-28.patch | 813 bytes | uberhacker |
Comments
Comment #1
francisperea commentedJust the same situation here.
jPlayer working but I get the same error message in the Status Report.
I've even tried to downgrade to jPlayer version 2.7.2 to see if it was a detection problem but no luck.
Any ideas?
Comment #2
ajimenezz commentedI have the same problem, I tried with jPlayer version 2.8.2 and 2.8.1 and the error message continue.
Comment #3
rbosman commentedChange the name of sites/all/libraries/jplayer/jquery.jplayer.min.js to sites/all/libraries/jplayer/jquery.player.min.js (i.e. without the j before player) and it works.
If you look carefully at the error message, you will notice that the j is missing also.
Comment #4
rbosman commentedI just noticed that the name-change gets the error message out of the way but jplayer now no longer works correctly.
I changed the name back to the original. Now I get the error message again but at least jplayer appears to be working correctly
Comment #5
ajimenezz commentedI tried with the name-change too, and the error message dissapears but it didn't work, I copied jquery.jplayer.min.js to jquery.player.min.js to have 2 files (1 to work jplayer and other 1 to correct the error message) but the error message continues.
Comment #6
Jam Paraiso commentedI also encounter this error, any way fix to this? i tried all what they did above, same results
Comment #7
LIQUID VISUAL commentedALso looking for this.
Comment #8
soofe commentedI have the same issue..
Comment #9
miroslaw.krawczyk commentedNew releases of jquery.jplayer.min.js contain "jPlayer" instead "Version:" phrase.
Just change this:
preg_match('/Version:?[ ]*([\d.]+)/i', $contents, $matches);to those:
preg_match('/jPlayer?[ ]*([\d.]+)/i', $contents, $matches);in jplayer.module, line 292 (jplayer-7.x-2.0-beta1)
I get this message after: "The jPlayer library (version 2.9.2) successfully found in the sites/all/libraries/jplayer directory."
Comment #10
markie commentedHi all.. I believe this has been addressed in the dev version and hope to get a full release out by the end of the month. Been concentrating on the D8 version. Sorry for the delay in response.
@miroslaw.krawczyk great pick up!
Comment #11
Jam Paraiso commentedThanks @miroslaw.krawczyk !
#9 fixes the erorr
Comment #12
ajimenezz commented#9 works nicely, thanks you @miroslaw.krawczyk
Comment #13
soofe commentedHi, please help me..
I have followed the instruction above and change line 292 jPlayer? instead of the version, however I am still having the same problem..
How does #9 fix the problem and where shall I write #9. Need abit more detail please..
Thanks
Comment #14
miroslaw.krawczyk commentedYou should change the 292 line in the drupal module: jplayer.module file (jplayer-7.x-2.0-beta1). Insert "jPlayer" instead "Version:". That is all.
Comment #15
LIQUID VISUAL commentedMany thanks. Great module!
Comment #16
uno commentedThe patch #9 removes the error. JPlayer works fine with or without patch.
Comment #17
jessehsThis seems to be fixed in the 2.x-dev branch: http://cgit.drupalcode.org/jplayer/commit/?h=7.x-2.x&id=448d1bbe256496b9...
Comment #19
daneshjoo commentedhi
I move files from
sites/all/libraries/jPlayer/dist/jplayer
to
sites/all/libraries/jPlayer/
and it work.
now, I want use circle or popcorn player,how?
Comment #20
yan commentedI can confirm that this was fixed in dev, but it's been almost four years since the latest release. Is there gonna be a new one to fix this error?
Edit: dev fixes this issue but breaks the functionality of the module in my case. It seems that the path for the library is missing the / somewhere in case using flash.
Comment #21
yan commentedTo be more precise: When I use 7.x-2.x-dev, the error message from this issue disappears and the player works with its default configuration. But when I change the field's display settings to use flash as the "Preferred solution", the player stops working. In the firebug konsole I get the following error:
So it seems that the swf is being included not based on the drupal root, but on the current position. The correct path would be
http://example.com/sites/all/libraries/jplayer/jquery.jplayer.swf.Comment #22
daniel.stewart commented#3 Worked!! Thanks
Comment #24
markie commented@yan I have updated the dev branch to include the preceding slash in the SWF path. Can you please test it and verify it works. If this is good I'll go ahead and push a full release.
Comment #25
Disciple Eule commentedSame here. After updating the module to the current version 7.x-2.x-dev, nothing works anymore. The Status report shows an error, that the library could not be found, although no change was made to the lib-folders. And I was not able to fix it with any path I tried out. Maybe some review on code changes are necessary.
Comment #26
mohanad4004 commentedjust renamed jquery.jplayer.min.js to jquery.player.min.js .. and it worked!
Comment #27
jakemonO commentedI symlinked jquery.player.min.js to jquery.jplayer.min.js and still get the error. Running 7.x-2.0-beta1. No dice, still getting the error "Either the directory specified does not seem to contain the jPlayer library, or you are not using version 2 of jPlayer. Check to make sure that the jquery.player.min.js file is located within this directory." Any suggestions would be appreciated.
Comment #28
uberhacker commentedThe attached patch simplifies the version checking process and also works for older versions.
Comment #29
uberhacker commentedComment #30
uberhacker commentedIgnore the above patch. Use this patch instead.
Comment #31
yan commentedI tried the patch from #30 and applied it manually to latest dev. The error message in the status report still tells me that the library isn't installed. The result is the same when I copy the whole contents of the downloaded jplayer archive to
/sites/all/libraries/jplayeror just the contents of/dist/jplayer/inside the jplayer archive.Could the problem be that the minified version doesn't contain the string we are looking for (
Version: ([\d.]+))?https://github.com/happyworm/jPlayer/blob/2.9.2/dist/jplayer/jquery.jpla...
Comment #32
uberhacker commented@yan: I think this issue happens when you only have the minified version of the library available. Normally, if you copy the entire library including the un-minified version, you won't run into this issue but I will try and roll another patch that handles this hypothetical situation.
Thanks
Comment #33
uberhacker commentedI just installed the latest dev version and the issue is gone. I think part of the confusion is master is not in sync with the latest dev version.
Comment #34
thalemn commentedI updated the module to the latest version (7.x-2.0), and updated the library to the jPlayer-2.9.2 and I do not get an error. I did update the dist/jplayer files as instructed in the readme file.
My concern now is when I view the jPlayer configuration options, I only have Time Format showing. To be honest, I'm not sure if I had other options there. Is there something I'm doing wrong with the install of the library?
Comment #35
markie commented@thalemn can you please open a new issue with a screen shot so I can see what you are seeing? I am not able to replicate what you are seeing.
Comment #36
thalemn commentedDone