#1934 - Upgrading to JWPlayer Pro
0 guests and 0 members have recently viewed this.
The top 3 point earners from 14th Dec 2025 to 21st Dec 2025.
| PDStig |
|
|
|---|---|---|
| Gabri |
|
|
| sholzy |
|
|
There are no events at this time
In short:
Put all the code from the JS files in the JAVASCRIPT_JWPLAYER.tpl template. But make sure these lines stay at the top:
{$,Parser hint: pure}
{$,Parser hint: .innerHTML okay}
Put the SWF file over data/flvplayer.swf
OR adjust any templates referencing flvplayer.swf (e.g. ATTACHMENT_FLV.tpl) to point to the new path.
The Pro version actually has 2 different js files, jwplayer.js nd jwplayer.html5.js, and I'm not sure they are supposed to go into the same template, but again, I will have a proper look at what is in your template and theirs and how it might fit together in the JWPLAYER.tpl
Not expecting solutions, just reporting what might an issue before I even attempt this.
There was an issue with titles in flow mode:
http://compo.sr/tracker/view.php?id=1943
"The Pro version actually has 2 different js files, jwplayer.js and jwplayer.html5.js, and I'm not sure they are supposed to go into the same template" yeah typically. Match the order it asks you to include them with. That said it is possible it uses an autoloader system, in which case somehow it needs to be disabled or coded to know how to load the dependent JS file.
Note that you can avoid using JS templates entirely and do a more conventional HTML integration. Replace {$REQUIRE_JAVASCRIPT,javascript_jwplayer} with the <script> code it tells you to put into the header, basically. We use templates for all the JS libs we integrated, for reasons of tidiness, but you don't need to.
Might be easier to just add the <script> directly, didn't think of that and will probably just do that, but I will look at the templates first and see if I can get it working that way. flvplayer isn't in the data directory on v10, but maybe it moved somewhere else.
I'll take a look at your stock v9 issue, but I'd need to have a link to check it. It's probably some JS error.
Which implies that Firefox doesn't support h.264, yet according to the YouTube HTML5 page Waterfox does (even though it doesn't play well with Composr in some cases).
ReferenceError: jwplayer is not defined
http://127.0.0.1/Composr/site/index.php?page=galleries&type=video&id=frantic-amber&wide=1&max=12
Line 430
Fine without the key, though their instructions say put it at the top of the js file.
You posted a comment about upgrading jwplayer, but you may have deleted it. An issue here is that we support IE8 on the frontend still, but jwplayer 7 does not. I'll add a note in our topic tracking our browser support about this.
Considering flash fallback, audio support, general compatibility, openness...
mediaelement.js and VideoJS are the standout options. Projekktor came close "on paper", but was relatively clunky and less popular. flowplayer also came close, but doesn't support audio as well. I agree mediaelement.js has a slight lead over VideoJS, so I'll have a shot at integrating it.