facebook

how to stop or pause sound playing : CLOSED

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #344031 Reply

    Muhammad
    Member

    This is right code to stop a playing sound?

    var aw1 = AudioPlayerWidget.fromWidget('m1-aw-test-audio1');
    aw1.pause();

    I tried to use this code, but got this error.

    See attachment Image 1.png

    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #344044

    Muhammad
    Member

    I solved this problem using this code

    AudioPlayerWidget.active.pause();

    And replay using this code,

    AudioPlayerWidget.active.play();

    If you have different way, please let me know.

    #344055

    RichardOne
    Member

    Why when there’s a widget to do this?

    Works fine for me as it is

    #344057

    support-michael
    Keymaster

    @Muhammad

    The audio widget and api underwent some key changes for MobiOne 2.5. See this Announcement with a link near bottom to the audio widget developers guide.

    #344066

    RichardOne
    Member

    Hi,

    Works perfectly well for me

    #344102

    Muhammad
    Member

    Thank you for your help.
    Its very usefull document.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: how to stop or pause sound playing : CLOSED

You must be logged in to post in the forum log in