jPlayer 2.0.0 has a bug with relative media urls

6,664 views
Skip to first unread message

Mark Panaghiston

unread,
Apr 4, 2011, 9:51:06 PM4/4/11
to jpl...@googlegroups.com
Hello Group,

Just in case you missed the thread where I confirmed that this was a problem...

jPlayer 2.0.0 has a problem with relative URLs under some conditions. The Flash solution does not work with relative URLs for the formats M4A and M4V, which are the audio and video MP4 formats supported by the Flash.

The problem manifests itself as the relative URL being from the path of the SWF file Jplayer.swf.

While I will look into the issue, since relative MP3 urls are fine with the Flash solution, from now on, we strongly recommend using absolute URLs for all media. (Note that the HTML solution also works with relative URLs.)

Remember that if your media is on the same site, then you can use absolute URLs relative to the server root. For example:
"/some/path/to/my/media/elvis.m4a"

Best regards,
Mark P.

ps. This was reported in the group some time ago, but I failed to duplicate the problem. At the time, the problem was masked by the url rewriting that we do, so the relative path from the current page was the same as that form the JavaScript directory.

A new test was performed using the demo ZIP file instead. Immediately the issue became apparent. After further testing, it was found that only the Flash fallback with M4A or M4V formats were affected.

AlexB74

unread,
Jun 14, 2011, 5:35:57 PM6/14/11
to jpl...@googlegroups.com
Ciao a tutti,
scusatemi se ho sbagliato sezione per chiedere supporto al mio problema.

Sto cercando di utilizzare jQuery HTML5 Audio in questa pagina web: http://www.alessandrobella.it/renzi/disco-vortici.html

Con Chrome e Safari OK
Con Firefox 4.0.1 ed Opera 11.11 le track audio non si ascoltano, non le carica...
Con IE8 invece non si vede proprio la lista delle track audio

Nel server sono presenti sia i file .mp3 che .ogg

Potete aiutami a capire perchè non funziona con Firefox, Opera e IE?

GRAZIE! 


Haidosu

unread,
Jun 29, 2011, 1:22:13 PM6/29/11
to jpl...@googlegroups.com
It works at my PC - Win7, Firefox 5.
Only your rotating CD-Cover is a bit awful.. (my opinion)

Matthew Breeden

unread,
Mar 5, 2012, 3:29:10 PM3/5/12
to jpl...@googlegroups.com
Has anyone found a workaround for this?  I'm building an AIR desktop app based on a web application I already made.  I really need to have relative filepaths and use flash fallback, since I don't know where users will install the app, and AIR doesn't support the video tag.

Jan Szoja

unread,
May 25, 2012, 11:06:12 AM5/25/12
to jpl...@googlegroups.com
I solved it by configuring comma separated url list for each media. First one is related to current html page(html soution) and the second to swf player location.

Jan Szoja

unread,
May 25, 2012, 11:14:01 AM5/25/12
to jpl...@googlegroups.com
I enhanced it to accept comma separated urls for media, eg

$(this).jPlayer("setMedia", {
  m4v: "../video/sample.m4v,../../../video/sample.m4v"

First url is relative to flash player and the second to current page.

Se attached file for solution.
jquery.jplayer.js

Bernardo Rojas

unread,
Oct 8, 2012, 8:45:09 PM10/8/12
to jpl...@googlegroups.com
È necessario verificare e testare l'installazione di jwplayer, ti suggerisco di usare il WavePad per la conversione in ogg, m4a e sicuri con quello corretto, ancora, sembra di essere alle prese il nostro modo di comprimere un mp3, come si dice in JPlayer che non riesce MIME assicurazione, ma non ci dicono come risolvere il problema o dove comprimere, file nativi utilizzati per verificare la corretta installazione in html5, Saluti!



El lunes, 8 de octubre de 2012 17:21:24 UTC-5, Bernardo Rojas escribió:
your problem is how compress the audio format, i have a same problem, i use for safari and ie9 m4a, because i need a same format how to use in the web of jplayer
Reply all
Reply to author
Forward
0 new messages