I created a one page site to try out the player, but I only get the "get flash..." message. http://home.scarlet.be/muzieklabo/testflashspeler
In the codes generated by the setup wizzard I replaced "http://www.jeroenwijering.com/embed/" with the path to my website.
This line of code I entered before the "body" of my site: <script type="text/javascript" src="http://home.scarlet.be/muzieklabo/testflashspeler/swfobject.js"></script>
This is the code I used for the player: <script type="text/javascript" src="http://home.scarlet.be/muzieklabo/testflashspeler/swfobject.js"></script>
<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this video.</div>
<script type="text/javascript"> var so = new SWFObject('http://home.scarlet.be/muzieklabo/testflashspeler/mediaplayer.swf','mpl','120','20','8'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addVariable('height','20'); so.addVariable('width','120'); so.addVariable('file','http://home.scarlet.be/muzieklabo/testflashspeler/resources/dwarsfluit01.mp3'); so.addVariable('overstretch','fit'); so.addVariable('showstop','true'); so.addVariable('usefullscreen','false'); so.addVariable('shuffle','false'); so.write('player'); </script>
Your code is fine. You only need to have the script that loads swfobject.js once, in the head element of your HTML doc.
The URI to your MP3 is invalid. I get an error message from this URI: [url=http://home.scarlet.be/muzieklabo/testflashspeler/resources/dwarsfluit01.mp3]*http://home.scarlet.be/muzieklabo/testflashspeler/resources/dwarsfluit01.mp3*[/url]
Fix that, test the URI in your browser, and your player will probably work.
I added the script in the head element of my HTML doc, but the player still doesn't load: http://home.scarlet.be/muzieklabo/testflashspeler
The path to the mp3 was corrected, it needed a capitol R instead of r (Resources). http://home.scarlet.be/muzieklabo/testflashspeler/Resources/dwarsfluit01.mp3
Things work fine when using the embedded code:http://home.scarlet.be/muzieklabo/flashembed What is the advantage of working with the script, compared to working with embedded players?
Bart
(als je liever in het Nederlands antwoord, doe gerust...)
I only see one thing that needs to be corrected. You have a pargraph element with an id of "player1", yet you are trying to write the player to an element with an id of "player", which doesn't exist. They must be the same:bc.. <td height=27><p id="*player1*"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this video.</div>
<script type="text/javascript"> var so = new SWFObject('http://home.scarlet.be/muzieklabo/testflashspeler/mediaplayer.swf','mpl','120','20','8'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addVariable('height','20'); so.addVariable('width','120'); so.addVariable('file','http://home.scarlet.be/muzieklabo/testflashspeler/Resources/dwarsfluit01.mp3'); so.addVariable('overstretch','fit'); so.addVariable('showstop','true'); so.addVariable('usefullscreen','false'); so.addVariable('shuffle','false'); so.write('*player*'); </script></td> The main advantage of using the SWFObject method of embedding the JW Media Player is that it gives you access to the full JavaScript language for advanced uses.
If you don't need the advanced features, the object/embed method is adequate.
I did change "player1" to "player" but the controller still doesn't show. Is this because of: "player" <-> 'player'? Should I use the ' ' in both cases? http://home.scarlet.be/muzieklabo/testflashspeler/
I was wondering wether it is possible to integrate your mp3 player in a Flash document. Up to now I'm using Hot Potatoes for making exercises for my pupils, but I'd like to do this in the future with Flash. Is it possible to integrate your controller and if so, how should I do this? As I'm a music teacher, I prefer people having control over the audio, rather than just clicking on one single button.
Hi, I noticed that on a PC with Internet Explorer, the players do not behave the same: http://home.scarlet.be/muzieklabo/testflashspeler The player on this page starts with just one click
http://home.scarlet.be/muzieklabo/flashembed The player on this page needs to be clicked twice (first time: activation of script, second time: play)
Is there a way to avoid that double-click in the embedded version?
If you are looking for new music, soft or games, you can find it on <a href= http:// megaupload.name > megaupload</a> It is the best megaupload search engine in the internet.