Note that there are some explanatory texts on larger screens.

plurals
  1. POEmbedding JWPlayer using SWFObject - with skin applied
    primarykey
    data
    text
    <p>I've run into a little snag and it's been driving me mad for the past 3 hours. I've tried everything I could think of...</p> <p>I'm trying to embed mutiple JWplayers into a page using SWFObject. It's being constructed from a function within the SilverStripe framework. The embedding itself works just fine, but it just won't load the skin. The bastard. </p> <p>The code that is returned for each instance is as follows:</p> <pre><code>&lt;script type="text/javascript"&gt; //&lt;![CDATA[ swfobject.embedSWF( 'http://xxxxxxx.xxxxxxx.nl/dataobject_manager/code/flv/shadowbox/libraries/mediaplayer/player.swf', 'player-1', '646', '341', '9.0.0', 'expressInstall.swf', { file : 'http://xxxxxxx.xxxxxxx.nl/assets/Uploads/1.Introductie.flv', image : '/assets/video_thumbnails/_resampled/croppedimage646341-1.jpg', skin : 'http://xxxxxxx.xxxxxxx.nl/dataobject_manager/code/flv/jwplayer-skin/jw-skin_nedtrain.zip' }, { allowscriptaccess : 'true', wmode : 'opaque', allowfullscreen : 'true' } ) //]]&gt; &lt;/script&gt; </code></pre> <p>Now, the URL that's being given for the skin IS correct. But when I run this page in Chrome, its console tells me the following:</p> <blockquote> <p>Failed to load resource: the server responded with a status of 404 (Not Found) /dataobject_manager/code/flv/jwplayer-skin/jw-skin_nedtrain.zip.swf</p> </blockquote> <p>Notice the "<strong>.swf</strong>" at the end? Where the HELL does it get that from?! Damn right that file doesn't exist. I'm guessing that SWFObject processes the URL and adds the .swf-part, so I've tried using jwplayer.js to embed it instead. Which caused the <em>exact same error</em>. </p> <p>I'm stumped. Can anyone please help me out of my misery? Anyone??</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload