facebook

widget player error when play sound

💡
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 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #343514 Reply

    Muhammad
    Member

    I have error like this after upgrade to mobione 2.5.0.m3

    See attachment Image 7.png

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

    Muhammad
    Member

    It had the same problem when I made the simple project.
    I tried a simple sound widget and mp3 file, and get the same error.

    See attachment Image 8.png

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

    Hi Muhammad,

    Thanks for reporting the issue, I have replicated the issue and reported to dev team. Noted that it is on Test Center, in the meantime we find the problem you can use the Web Simulator to test your project.

    #343574

    Muhammad
    Member

    Do you have any update for this issue?
    Thank you

    #343580

    support-michael
    Keymaster

    >Do you have any update for this issue?

    The issue is with the Test Center in 2.5m3 and the newly implementation for the audio widget. We completely overhauled of the audio player widget implementation in 2.5m3 and the Test Center is not yet compatible with these changes. We will have a fix in the mobione 2.5 production version planned for next week. If you are blocked please switch to using the Mobile Web Simulator (see Window>Settings>).

    Also please be aware that the Test Center is being phased out and that the new Mobile Web Simulator will have higher maintenance priority starting with mobione 2.5. You can read about it here http://www.genuitec.com/mobile/docs/highlights/2.5.0M3/2.5.0M3_highlights.html

    #343631

    Muhammad
    Member

    The problem is not the simple audio widget only, but my big project also has the same error.
    I can not play sound which has the same error.
    So I think the problem is not only test center, but uiphone.js.

    Did you have any change the sound functions in phoneui.js ?

                        // compat layer
                        phoneui.activeAudioPlayer = function(widgetId) {
                            var player = widgetId  ? AudioPlayerWidget.fromWidget("#" + widgetId) : AudioPlayerWidget.active;
                            return {
                                jPlayer: function(verb, param1, param2) {
                                    console.warn("jPlayer API is DEPRECATED and will be removed in future. Please use AudioPlayerWidget and phoneui.createMedia()");
                                    
                                    if (verb === "play") {
                                        player.play();
                                    } else if (verb === "pause") {
                                        player.pause();
                                    } else if (verb === "stop") {
                                        player.getMedia().stop();
                                    } else if (verb === "setMedia") {
                                        player.setMedia(param1.mp3);
                                    } else {
                                        throw Error("Illegal command: " + verb);
                                    } 
                                }
                            };
                        };
    #343633

    support-michael
    Keymaster

    >So I think the problem is not only test center

    I forgot to mention that the Test Center (obsolete after 2.5) was not updated in 2.5m3 to support the revised audio api. We will fix this in the 2.5 production version planned for next week. Please switch to using the new Mobile Web Simulator asap as it will always get top priority improvement from this point forward – the Test Center is deprecated and will be removed from mobione in a future release.

    >Did you have any change the sound functions in phoneui.js ?

    Yes, I my previous comment I shared that the audio widget api has changed and referenced the new api in the highlights document. See the following:

    /**
     * return the audioPlayer that is active
     *
     * @param nodeId optional String DOM node id of an audio widget to make active
     */ 
    phoneui.activeAudioPlayer([nodeId])
     
    /**
    * Examples
    * phoneui.activeAudioPlayer().jPlayer("play");
    * phoneui.activeAudioPlayer().jPlayer("pause");
    * phoneui.activeAudioPlayer("audio-container").jPlayer("play");
    */

    If you have an issue updating your code to this new api please share the code and we can make suggestions.

    #343637

    Muhammad
    Member

    Its like not need the “#” character also.

    As I use like this thread,

    http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=6183&hilit=bind

    Its need to change this code?

    phoneui.activeAudioPlayer(“m1-index4-audio3-container”).bind(“ended”, function(){

    alert(“test”)

    });

    #343640

    Muhammad
    Member

    Is it possible to downgrade previous version (2.5.0m2)?
    Include removing the # character issue, I need to change a lot project If use new version.

    Please make consistently in each version for using # character in function.

    #343645

    support-michael
    Keymaster

    You can rollback to 2.5M2 (hot-fix 1) using this installer: downloads1.genuitec.com/downloads/products/mobione/2.5/2.5M2HF1/MobiOne_2.5.0M2HF1a_Installer.exe

    You should uninstall MobiOne 2.5M3 before running this installer. When 2.5M2 starts up it will give you the option to upgrade to 2.5 milestone-3, just cancel the upgrade dialog and continue your use of 2.5M2.

    Note: MobiOne 2.5M2 will expire on Nov 1. We plan to ship the 2.5 production version before that time.

    #343800

    Muhammad
    Member

    Thank you for your support.
    Now, I use the old version, and audio play is running well.

    #343983

    Muhammad
    Member

    Is this version not able to work anymore?

    downloads1.genuitec.com/downloads/products/mobione/2.5/2.5M2HF1/MobiOne_2.5.0M2HF1a_Installer.exe

    #343986

    support-michael
    Keymaster

    Correct 2.5m2 expired today and you must update to 2.5 milestone-3 or rollback to 2.3. Or wait for MobiOne 2.5. We are very close to releasing 2.5 production. Found a late bug yesterday that delayed the release. We are planning to roll it out tomorrow (friday) once it finishes a final pass in QA.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: widget player error when play sound

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