Keyword

local MP3, no Player

  • Robert Orso
  • Robert Orso's Avatar Topic Author
  • Offline
  • New Member
More
6 years 10 months ago #162133 by Robert Orso
local MP3, no Player was created by Robert Orso
Hi folks,

I try to figure out how this plugin is to be used correctly, without much luck on this sample page .

I pulled the latest files from GIT and installed it on my Joomla 3.7.1 with PHP 7.x. When I place a rference to a soundcloud page, I get a player. If I try to play a local mp3 with

{mp3}Konzerte/20170318/06-Blumenwalzer{/mp3}

I get the download link (working) but no player at all. Instead I get an error in the http protocol when it tries to fetch this script:
https://www.mv-werkskapelle-lenzing.at/news/jwplayer.html5.js
Obviously the plugin refers to the URL of the page - where this script is not stored. It's rather there:
/plugins/content/jw_allvideos/jw_allvideos/includes/js/jwplayer/jwplayer.html5.js
It does not help whether I turn off SEO, instead it will look in the root.

Did I miss something essential?

Btw.: It is not possible to name a folder to get all MP3s listed?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #162135 by Krikor Boghossian
Replied by Krikor Boghossian on topic local MP3, no Player
Roberto thank you for reporting this.
I will need to verify this.
Are you using any 3rd party SEF extensions?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Robert Orso
  • Robert Orso's Avatar Topic Author
  • Offline
  • New Member
More
6 years 10 months ago #162147 by Robert Orso
Replied by Robert Orso on topic local MP3, no Player

Krikor wrote: Are you using any 3rd party SEF extensions?


Not that I'm aware of. I tried to keep this installation as lean as possible.

I have the JA T3 Framework (2.6.4) installed and the corresponding Purity-III template that makes use of it. I had to make some minor tweaks to this template to make it running on Joomla 3.7 without warnings. Nothing dramatical.
Phoca Gallery
JEvents
MP3 Browser Fork - that one I'd like to replace. It is great for listing a directory of music files, but it uses flash and I'd like to use external sources too.

I could guess that this line
function l(c, d, f) {
		b.exists(c[f]) && (d[f] = c[f], delete c[f])
	}
	var b = f.utils,
	j = f.playlist.item;
	(f.embed.config = function (c) {
		var g = {
			fallback: !0,
			height: 270,
			primary: "html5",
			width: 480,
	--->		base: c.base ? c.base : b.getScriptPath("jwplayer.js"),
			aspectratio: ""
		};

should calculate the path to the script by looking at the current location of "jwplayer.js"

So when this is included with
$document->addScript($pluginLivePath.'/includes/js/jwplayer/jwplayer.js?v=4.8.0');

it is merged with a couple of other scripts and delivered as
<script src="/index.php?jat3action=gzip&amp;jat3type=js&amp;jat3file=t3-assets%2Fjs_ac8b6.js" type="text/javascript"></script>
So I would assume the script does not know its origin anymore.

Then it must be some result of the T3 framework optimizing load times.

Please Log in or Create an account to join the conversation.

  • Robert Orso
  • Robert Orso's Avatar Topic Author
  • Offline
  • New Member
More
6 years 10 months ago - 6 years 10 months ago #162148 by Robert Orso
Replied by Robert Orso on topic local MP3, no Player
Oh well, it seems that it is EXACTLY that. The T3 based template optimizes my CSS and JS includes.

However this IS configurable as a template option. I could either turn of JS optimization alltogether, which magically shows the player on the page, or I even can specify an exception to only "jwplayer.js", that is delivered as a single <script> with full path.



So now I can test this component with my files. It seems that how great it might be for videos, it does not look that promising in replacing "MP3 Browser". I'd have to redo the functionality similar and as informative as the one on this page .

I have to check the docs whether this is possible at all.
Last edit: 6 years 10 months ago by Robert Orso.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #162169 by Krikor Boghossian
Replied by Krikor Boghossian on topic local MP3, no Player
Yes, T3 Framework can have some hiccups when handling files from multiple sources. It can be related to plugin ordering, dynamic inclusion of files etc..
One file which is loaded ad-hoc will not affect your site, so I would not invest any time in this if I were you.

All modern browsers support mp3 files by default. I would still AllVideos if I were you in order to ensure backwards compatibility and a uniform UI.
Furthermore the object (flash) method is not supported in a multitude of environments, so go native or use AllVideos :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum