gotcha! It is easy !
<video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> The control attribute adds video controls, like play, pause, and volume. 2014-02-12 22:33 GMT+01:00 duilio foschi <[email protected]>: > I found the code below and it works. > > However, it seems a bit primitive to me. > > What if the music is 2h long ? > > How can I start, stop then restart the music and control the volume as > (say) youtube does ? > > Maybe I can find a commercial library ? > > Thank you > Duilio > > > <!DOCTYPE html> > <html> > <body> > > <embed height="50" width="100" src="horse.mp3"> > <p>If you cannot hear the sound, your computer or browser doesn't > support the sound format.</p> > <p>Or, you have your speakers turned off :)</p> > > </body> > </html> > > 2014-02-12 21:51 GMT+01:00 duilio foschi <[email protected]>: >> sorry for my ignorance. >> >> How is a musical track (say a WAV file) played in a web application ? >> >> The file is to be loaded at the server-side. >> >> Thank you >> Duilio -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
