Posts

JW Player is not working or slow loading

We’ve been moving from externally hosting videos with YouTube to self-hosting them with the killer little video player called “jw player“.  I just could figure it out, JW player was not working, it appeared to be slow loading.

I was converting one of our landing pages (see it here – it is for our tow straps page) to use the new player when I ran into an issue with Chrome.  The video was working fine with Firefox – but chrome would spin and spin, then eventually choke out.  Another symptom was Chrome would crash the shock-wave plugin.  All bad news.

I finally found this post over at the jw player site – it turns out if you include the jwplayer.js file more than once – it will cause this issue in chrome.  That is exactly what I had done.

Bad code monkey.

My particular issue came because I was using a “tag” in a program called Netsuite.

Tags is kind of like a variable – I had already included the code in a different variable and then I re-included it.
So – if you find yourself where JW Player is not working or slow loading was hanging up or causing an error on chrome – see how many times you included the javascript file.

Smarty Templates and javascript

At my work – we have a classifieds systems which leverages smarty templates.  From what I have seen – smarty templates are not too bad, but I ran into some trouble with them when I needed to add some javascript.  Here is a link to the code I used to fix that issue.

Processing.js – Flash replacement?

Processing.js.

I would love to use this as a flash replacement.  Not that I have anything against Flash…but, maybe.