+ Reply to Thread
+ Post New Thread
Results 1 to 3 of 3

Thread: How to play sound, music, intro or speech after website load?

  1. #1
    Administrator admin's Avatar
    Join Date
    Mar 2013
    Posts
    1,992
    Post Thanks / Like
    Blog Entries
    1

    How to play sound, music, intro or speech after website load?



    Hi,

    do you have good tips on how to auto play music or some sound after a webpage is opened?

    So far i found this code to be working good:

    for mp3
    <audio autoplay>
    <source src="song.mp3" type="audio/mpeg">
    </audio>
    for ogg
    <audio autoplay>
    <source src="song.ogg" type="audio/ogg">
    </audio>
    just add to a webpage code. make sure audio file is in same folder as webpage file, you can also set path like /sounds/song.mp3 ---> source src="/sounds/song.mp3" and that means you need to add your song into yourdomain.com/sounds/ folder.

    Example auto play sound you can find at website: http://hostinghostgatorcoupons.com/
    The voice is created by: http://www.ivona.com/en/ (speaker is: Joey)
    I just let him speak it and being recording by audio recorder software.

  2. #2
    Junior Member Hexajob's Avatar
    Join Date
    Mar 2016
    Location
    Ludhiana
    Posts
    5
    Post Thanks / Like


    Is this useful / helpfull? Yes | No
    Html 5 offers this facility to play music after loading the website

  3. #3
    Junior Member
    Join Date
    Apr 2016
    Posts
    4
    Post Thanks / Like


    Is this useful / helpfull? Yes | No
    Html 5 offers this facility
    apis development | application programmers | api application
    Last edited by bondj9433; 04-15-2016 at 05:49 AM.

+ Reply to Thread
+ Post New Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •