Hybrid View

  1. #1
    Ext User
    Join Date
    Jan 2009
    Posts
    61
    Vote Rating
    2
    venu is on a distinguished road

      2  

    Default How to invoke Beep sound in Extjs

    How to invoke Beep sound in Extjs


    Hi,
    I had a requirement where i need to give a long beep sound or play a wav/mp3 file etc.
    Is this kind of functionality supported in ExtJS? If not what is the alternate way to implement this in ExtJS.

    Any examples will be helpful.

    Thanks,
    Venu

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    48
    Animal has a spectacular aura about Animal has a spectacular aura about

      -5  

    Default


    Remind me of the URL of your site so I can avoid it!

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    91
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      1  

    Default


    There is a thread on sound support (you need a plugin, e.g. Flash).

  4. #4
    Ext User
    Join Date
    Jan 2009
    Posts
    61
    Vote Rating
    2
    venu is on a distinguished road

      0  

    Default


    Hi Animal,
    This is only for internal application and not for internet application.
    so i can't give you the url.

    Condor,
    I tried with that code modifying it for Firefox but still working for IE but not in FF.

  5. #5
    Ext User untunedman's Avatar
    Join Date
    Sep 2008
    Posts
    2
    Vote Rating
    0
    untunedman is on a distinguished road

      0  

    Default


    Just my 2 cents...

    While websites with sound do suck, there is a definite requirement for 'notification' sounds in a web application. Similar to how Google Android has a notification bar and the associated sound.

    Just ask yourself, what is more disruptive to your workflow, an alert box, or a small beep in the background? Personally, i would choose the beep.

  6. #6
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,360
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Quote Originally Posted by Animal View Post
    Remind me of the URL of your site so I can avoid it!
    No fair! you made milk come out of my nose!

  7. #7
    Sencha User
    Join Date
    Mar 2008
    Location
    Marietta, GA
    Posts
    93
    Vote Rating
    0
    jasondeegan is on a distinguished road

      0  

    Default Hilarious

    Hilarious


    I think it's funny how myopic (and seemingly cranky) some people on these boards are. Playing sound can be very useful - can you say, VISUAL VOICEMAIL?!?
    Don't measure excellence against others, but rather against the best implementation of yourself.

  8. #8
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,360
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Quote Originally Posted by jasondeegan View Post
    I think it's funny how myopic (and seemingly cranky) some people on these boards are. Playing sound can be very useful - can you say, VISUAL VOICEMAIL?!?
    No . I can't

  9. #9
    Sencha User frankeys's Avatar
    Join Date
    Dec 2010
    Posts
    10
    Vote Rating
    0
    frankeys is on a distinguished road

      0  

    Exclamation


    Quote Originally Posted by Animal View Post
    Remind me of the URL of your site so I can avoid it!
    Wow, you are really trying bind new extjs users to your product, not! I see you are a bit contemptuously overall on your answers on the forum.Although i dislike such people, i really love Extjs so i will live with it and i will never say anything about it again now i got my mind cleared.

    PS. He might want to play a beep sound when his users got a new message in the inbox, just like Gmail, you are also avoiding such websites?

  10. #10
    Sencha User
    Join Date
    Mar 2013
    Location
    Cebu Philippines
    Posts
    1
    Vote Rating
    0
    rowena19july is on a distinguished road

      0  

    Default


    i have done it this way (JavaScript + embed): (maybe not be the right way but it works for me)

    in my index.html:

    Code:
    <embed src="resources/assets/notify.mp3" autostart="false" width="0" height="0" id="notify"></embed>
    in one of my javascript source files, i have added a function to play the beep sound.
    Code:
    beep : function() {
        var sound = document.getElementById("notify");
        sound.Play();
    }