Observation:
If you wrapped the jwplayer setup call in a function, and called the
function in the onload handler of the body element, then you could put
the jwplayer setup bit of the script in the document head, which is a lot
neater than having script elements in document bodies.
ie:
change this:
<body>
to this:
<body onload="setupVideoPlayer();">
and this:
jwplayer( "my-video" ).setup({ <-----many lines of data-----> });
to this:
function videoPlayerSetup() {
jwplayer( "my-video" ).setup({ <-----many lines of data-----> });
}
and then put all of this:
function videoPlayerSetup() {
jwplayer( "my-video" ).setup({ <-----many lines of data-----> });
}
after the line:
jwplayer.key= <-----some data here-----> ;
so that it is inside the same script element,
and then delete the script element from after the </div> in the document
body.
Finally, you ought to just double check whether the jwplayer setup()
method requires json style data which, unlike normal javascript strings,
specifies only double quotes i.e. "" as string delimiters.
Not that I expect you to pay any attention to any of this, as doing so
would break with almost 20 years of well established tradition.
--
Denis McMahon,
denismf...@gmail.com