make sure you have this line first bc.. <script type="text/javascript" src="swfobject.js"></script> and that you have uploaded the *swfobject.js* to the server where the page expects it...
I copied the original script from the JW website. It started: bc.. <script type="text/javascript" src="swfobject.js" /> <div id="player">This text will be replaced</div> <script type="text/javascript"> var so = new SWFObject('/global/embed/mediaplayer.swf','mpl','416','272','7'); etc.
Then I changed it to: bc.. <script type="text/javascript" src="swfobject.js"> var so = new SWFObject('/global/embed/mediaplayer.swf','mpl','416','272','7'); etc.
Now it works like a charm. No more js errors. Thanks for your advice! Maybe the original script should be changed to avoid that more people download a script causing errors?
you also need the </script> as in the first posting, to be completely correct... the /> ending is actually valid xhtml so you are probably using a strict html4 dtd - but JeroenW is in the process of updating everything, so it will be changed in the wizard soon also...
Actually, I am using xhtml1.0 strict but serving application/xhtml+xml mimetype to browsers that can cope with it, text/html to IE. Maybe this has something to do with the error. Anyway, now it works so I'm happy :-)
ah, application/xhtml+xml seem to be the culprit then - there was some other users recently having problems with that too - http://www.jeroenwijering.com/?thread=6635 and http://www.jeroenwijering.com/?thread=6675#msg34367 so, thanks for the info, good to know and keep an eye out for!
You are loading *swfobject.js* twice here:bc.. <script type="text/javascript" src="http://www.mirosonic.com/swfobject.js"></script> <script type="text/javascript" src="http://www.mirosonic.com/swfobject.js"></script> Once is enough. One of those lines of code should be in the head element of your HTML page. The other one should disappear into stray electron land (delete it).
/* add some aliases for ease of use / backwards compatibility */ var getQueryParamValue = com.deconcept.util.getRequestParameter; var FlashObject = com.deconcept.FlashObject;
Why wouldn't the code below work? I have swfobject.js, player.swf and video.flv in the same folder. It doesn't matter whether I use the full URL or the file system absolute path to these files, i get the same error "swfobject is not defined". Firebug highlights the following line in the code:
Do you have the correct version of swfobject. You don't mention the version that you have, so I'm guessing that you may not be aware that those demos require swfobject v2.1 from here: http://code.google.com/p/swfobject/
Hi All, i am trying to implement wmv player Here i write code as follow
<script type="text/javascript" src="wmvplayer.js"></script> <script type="text/javascript" src="silverlight.js"></script> <div id="myplayer">the player will be placed here</div> <script type="text/javascript"> var elm = document.getElementById("myplayer"); var src = 'wmvplayer.xaml'; var cfg = { file:'video.wmv', width:'320', height:'180' }; var ply = new jeroenwijering.Player(elm,src,cfg); </script>
i found this error :jeroenwijering is not defined and player is not display on web page Please Help Me Thanks in advance
advancing slowly swfobject is not defined error is gone but now i get a 2032 but only on some files. here is the code im using bc.. <style type="text/css"> #wrapper1 { width:320px; height:296px; } </style>
2032 is a "Stream Error"; usually means the player can't retrieve the media file. Check the URI in your browser to see if it is Internet accessible. *http://www.mydomain.com/path/mediafile.ext* (Adjust the domain, path, and filename to yours.)
Hi everybody, we are stuck with the same error, the "swfobject is not defined", even after upgrading swfobject.js to v2.1
after precicely checking the dtd definitions etc., we copied the example from http://home5.inet.tele.dk/nyboe/flash/mediaplayer4/JW_API_xmpl_0-0-0.html and *had the same problem!*
not enough, using "save page..." instead of copy&pasting got us a working example! the player.swf is then found in a folder, maybe there's a prob with local links?
I'm getting the "swfobject is not defined" error when trying to use the example that comes with the latest download. There is obviously something wrong with the files. Could someone post an update and/or explanation please?
Thanks.
[EDIT] I fixed the issue. The example is still downloading with swfobject 1.5, but it needs to have 2.1 included.
Hi Every one, I am using swfobject.js library to play video in my website. It is working fine but seek bar not working. seek bar not showing how much video have been completed while playing. And one more thing, total duration of video is not showing. It is showing just 00.00 for every video.
I was also getting this error with JW version 4.2.9, but it turns out that I was using version 2.2 of swfobject.js which doesn't work with this version of JW. I switched back to version 1.5 and videos are all playing again.
This question has received the maximum number of answers.