Florian Neumeyer: Preload von Sounddateien (.wav, .au,...)

Hallo liebe ForumlerInnen !

Gibt es eigentlich eine Möglichkeit mit JavaScript Sounds zu preloaden ?

Mfg.

Florian Neumeyer

  1. Hallo,
    das kannst du mit einem kleinen Applet machen.
    http://www.frontierconsulting.com/orchard/auplayer2/Default.html

    Grüße
    Thomas

    Hallo liebe ForumlerInnen !

    Gibt es eigentlich eine Möglichkeit mit JavaScript Sounds zu preloaden ?

    Mfg.

    Florian Neumeyer

  2. Hallo Thomas,

    hier folgen ein paar kleine Code-Schnippsel:
    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    <html>
    <head>
    <script language="JavaScript1.1"><!--
    var NSsound = navigator.plugins && navigator.plugins["LiveAudio"];
    var IEsound = navigator.plugins && document.all;
    var audioEnabled = NSsound IEsound;

    function SayIt()
    {
    if(!audioEnabled)
    {
      alert('\n"Das funktioniert nicht mit diesem Browser\n\n... schade :(');
      return;
    }

    if(document.all) document.meinsound.run();  
    else document.meinsound.play(false);  
    

    }

    //--></script>

    </head>
    <body>
    <script language="JavaScript1.1"><!--
    if(audioEnabled) document.writeln('<embed name="meinsound" SRC="xxx.wav" mastersound hidden="true" autostart="false" volume="100%">');
    //--></script>

    <a href="javascript:SayIt(this)"Sound abspielen</a>
    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    Etwas in der Art kannst Du auf der Seite http://www.purpurhain.de/bullshit-bingo.htm
    finden.