WordPress LMS for Web and mobile Forums WPLMS Student App Runtime Error with videos (local & with WPLMS S3 based shortcodes)

Runtime Error with videos (local & with WPLMS S3 based shortcodes)

Back to course
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #12663

    Peter O.
    Participant
    Hello Alex, Testing in a web browser on my laptop works fine for embedded (a) local videos, (b) WPLMS S3 based videos, and (c) local audio files.  But, causes a crash in the DevApp and in the Ionic Lab web browser based emulator. I just purchased your WPLMS S3 plugin and tested serving a video in a Unit. That caused a Runtime Error using the DevApp and also in the browser's emulator. In Windows 10, I used the following ionic command:
    D:\wplms\myProject>ionic serve --lab -c
    #1. Error in the browser emulator for Android (https://www.screencast.com/t/kOaWd850p ) is the same as in the DevApp:
    Runtime Error rxjs_1.fromEvent is not a function TypeError: rxjs_1.fromEvent is not a function at VgFullscreenAPI.init (http://10.1.1.36:8100/build/vendor.js:61446:44) at VgPlayer.ngAfterContentInit (http://10.1.1.36:8100/build/vendor.js:114626:20) at callProviderLifecycles (http://10.1.1.36:8100/build/vendor.js:13116:18) at callElementProvidersLifecycles (http://10.1.1.36:8100/build/vendor.js:13090:13) at callLifecycleHooksChildrenFirst (http://10.1.1.36:8100/build/vendor.js:13073:29) at checkAndUpdateView (http://10.1.1.36:8100/build/vendor.js:14223:5) at callViewAction (http://10.1.1.36:8100/build/vendor.js:14570:21) at execEmbeddedViewsAction (http://10.1.1.36:8100/build/vendor.js:14528:17) at checkAndUpdateView (http://10.1.1.36:8100/build/vendor.js:14220:5) at callViewAction (http://10.1.1.36:8100/build/vendor.js:14570:21)
    My text in the Unit is as follows:
    <h3>Your QiMoves App</h3> The QiMoves App is available for both Android and Apple iOS based mobile devices.   This includes smartphones and tablets such as iPhone, iPad, Samsung Galaxy and Note, Google Nexus and others. [video width="846" height="476" mp4="https://qimoves.net/wp-content/uploads/2018/06/Long-General-Intro.mp4"][/video]
    I can provide Administrative access to WordPress and/or FTP access upon request. I would appreciate your response ASAP before the weekend if possible, as I would like to make progress on this over the weekend. Thank you for your insights and expertise. #2. WPLMS S3 based video in Unit — just shows a video image but does not play. <h3>Fruitcake sugar</h3> Test S3 based video next: [wplms_s3 duration='5' parameter='60' link='bucketnameqimoves/Long General Intro.mp4'][/wplms_s3] #3. Audio file does not show the player.
    <h3>Ut eget metus id nulla ultricies rutrum eu vitae orci</h3> Test audio next: [audio mp3="http://vibethemes.com/envato/wplms/wp-content/uploads/2014/02/1.mp3"][/audio] &nbsp; Audio above.
    #12698

    admin
    Member
    Ok please provide your site url ,admin credentials and a valid ftp credentials   to check this issue at your end . PS : mark reply as private while sharing credentials  .
    #12704

    Peter O.
    Participant
    This reply has been marked as private.
    #12706

    Peter O.
    Participant
    This reply has been marked as private.
    #12707

    Peter O.
    Participant
    This reply has been marked as private.
    #12753

    admin
    Member
    This reply has been marked as private.
    #12764

    Peter O.
    Participant
    Hi Alex, Thank you for your efforts in testing my WpLMS App. I'm happy the app builds, indicating the source code should be good. However, I assume my development setup of Node, Cordova, Ionic... must be the problem.  Do you agree? In your experience with the Ionic development setup, can you suggest some things I should do to get my environment functional to build my WpLMS Mobile App? Thanks, Peter
    #12779

    admin
    Member
    Well I would recommend you to generate your app and test in mobile . Use this command to generate a debug apk file  : ionic cordova build android   then install it in your phone and test it for lag .   If im doing anything wrong in replicating the issue please share the steps to replicate the issue .
    #12796

    Peter O.
    Participant
    Hi Alex, You were able to build the .APK file with the ZIP file of my /projectFolder. I was able to install the build.apk that you provided and it runs well on my Android (Samsung Note4). I am still unable to build the .apk on my system, using the exact same project folder for my Ionic project as provided to you in the zip.  I tried: "ionic cordova build android" but it is failing.  I would sure love to know how your environment is capable of building the .apk but mine does not complete? To replicate my error, unzip the ionic project file (for the WPLMS Student App) as you did with info in the private message. Run "ionic cordova build android". My results for the build attempt are pasted below. Thank you for any assistance and help. Here is the result of "ionic cordova build android" showing the build error(s):
    [02:31:28]  lint finished in 14.39 s Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead. at build_3eqvcfhtsrgecfsvxpc5mcyox.run(D:\-\DevMobi\wplms\qimoves\platforms\android\build.gradle:141) The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0. Incremental java compilation is an incubating feature. The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead. Download https://jcenter.bintray.com/com/facebook/android/facebook-android-sdk/4.34.0/facebook-android-sdk-4.34.0.pom Download https://jcenter.bintray.com/com/facebook/android/facebook-core/4.34.0/facebook-core-4.34.0.pom Download https://jcenter.bintray.com/com/facebook/android/facebook-common/4.34.0/facebook-common-4.34.0.pom Download https://jcenter.bintray.com/com/facebook/android/facebook-login/4.34.0/facebook-login-4.34.0.pom Download https://jcenter.bintray.com/com/facebook/android/facebook-share/4.34.0/facebook-share-4.34.0.pom Download https://jcenter.bintray.com/com/facebook/android/facebook-places/4.34.0/facebook-places-4.34.0.pom Download https://jcenter.bintray.com/com/facebook/android/facebook-applinks/4.34.0/facebook-applinks-4.34.0.pom Download https://jcenter.bintray.com/com/facebook/android/facebook-messenger/4.34.0/facebook-messenger-4.34.0.pom Download https://jcenter.bintray.com/com/facebook/android/facebook-marketing/4.34.0/facebook-marketing-4.34.0.pom Download https://jcenter.bintray.com/com/facebook/android/facebook-core/4.34.0/facebook-core-4.34.0.aar Download https://jcenter.bintray.com/com/facebook/android/facebook-common/4.34.0/facebook-common-4.34.0.aar Download https://jcenter.bintray.com/com/facebook/android/facebook-login/4.34.0/facebook-login-4.34.0.aar Download https://jcenter.bintray.com/com/facebook/android/facebook-share/4.34.0/facebook-share-4.34.0.aar Download https://jcenter.bintray.com/com/facebook/android/facebook-places/4.34.0/facebook-places-4.34.0.aar Download https://jcenter.bintray.com/com/facebook/android/facebook-applinks/4.34.0/facebook-applinks-4.34.0.aar Download https://jcenter.bintray.com/com/facebook/android/facebook-messenger/4.34.0/facebook-messenger-4.34.0.aar Download https://jcenter.bintray.com/com/facebook/android/facebook-marketing/4.34.0/facebook-marketing-4.34.0.aar Download https://jcenter.bintray.com/com/facebook/android/facebook-android-sdk/4.34.0/facebook-android-sdk-4.34.0.aar FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'android'. > BUILD FAILED Total time: 43.009 secs Could not find play-services-auth-base-license.aar (com.google.android.gms:play-services-auth-base-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base-license/11.8.0/play-services-auth-base-license-11.8.0.aar * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. (node:11696) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'android'. > Could not find play-services-auth-base-license.aar (com.google.android.gms:play-services-auth-base-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base-license/11.8.0/play-services-auth-base-license-11.8.0.aar * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. at ChildProcess.whenDone (D:\-\DevMobi\wplms\qimoves\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) (node:11696) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:11696) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. D:\-\DevMobi\wplms\qimoves>
     
    #12806

    admin
    Member
    Hi this is google android sdk error : Please follow this solution to resolve this : https://github.com/react-native-community/react-native-google-signin/issues/418#issuecomment-396151977
    #13361

    Peter O.
    Participant
    Hi Alex, It has taken me quite a while to resolve the issue with:

    BUILD FAILED

    Total time: 43.009 secs
    Could not find play-services-auth-base-license.aar (com.google.android.gms:play-services-auth-base-license:11.8.0).
    Searched in the following locations:
    https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base-license/11.8.0/play-services-auth-base-license-11.8.0.aar

    I am now able to build my android .apk. I changed the sequence of jcenter() as follows.

    /* previously, jcenter() was at the top of build.gradle */
    jcenter()
    maven { url "maven.google.com"; }
    maven { url'maven.singular.net/'; }

    The solution is to move jcenter() to the last line as shown below.

    maven { url "https://maven.google.com" }
    maven { url 'http://maven.singular.net/' }
    jcenter()
    
    #13383

    Peter O.
    Participant
    Alex, The copy-and-paste didn't format correctly above. I will try again.
    Problem: ionic3-build-error-could-not-find-play-services-auth-base-aar
    The solution, after much time and effort, is to edit the build.gradle file. The jcenter() function must be moved down as shown below.
    buildscript { repositories { /* jcenter() ** moved this to bottom */ maven { url "https://maven.google.com" } jcenter() }
    And the following in the same build.gradle file:
    allprojects { repositories { /* jcenter() ** moved this to bottom */ maven { url "https://maven.google.com" } jcenter() } }
    #13400

    admin
    Member
    Well you are just close to resolve this .just need to a proper build.gradle file . Download my build.gradle file from here : https://we.tl/qMpIKJS86M install this android platform : cordova platform add [email protected]  
    #13404

    Peter O.
    Participant
    Hi Alex, Following your instructions, I replaced my /platform/android/build.gradle file with the build.gradle that you sent to me.  Then ran the command you specified: "cordova platform add [email protected]", but that failed with:
    D:\-\DevMobi\wplms\qimoves>cordova platform add [email protected] Using cordova-fetch for [email protected] (node:1044) UnhandledPromiseRejectionWarning: CordovaError: Platform android already added. at C:\Users\p_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\platform\addHelper.js:149:35 at _fulfilled (C:\Users\p_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54) at self.promiseDispatch.done (C:\Users\p_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30) at Promise.promise.promiseDispatch (C:\Users\p_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13) at C:\Users\p_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:557:44 at flush (C:\Users\p_000\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17) at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9) (node:1044) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:1044) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    It appears that I already had that platform added. So, next I tried to build with: "ionic cordova build android"
    BUILD FAILED Total time: 38.549 secs FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'android'. > Could not find play-services-auth-base-license.aar (com.google.android.gms:play-services-auth-base-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base-license/11.8.0/play-services-auth-base-license-11.8.0.aar * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. (node:9252) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'android'. > Could not find play-services-auth-base-license.aar (com.google.android.gms:play-services-auth-base-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base-license/11.8.0/play-services-auth-base-license-11.8.0.aar * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. at ChildProcess.whenDone (D:\-\DevMobi\wplms\qimoves\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) (node:9252) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:9252) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. D:\-\DevMobi\wplms\qimoves>
    The above is the original build error that I reported here. After making the following changes to the build.gradle file, I was able to complete the build of "android-debug.apk" by running "ionic cordova build android". Changes to build.gradle file shown below:   Please provide some clarity so I'm no longer stuck here. I really need to make some progress with my Mobile App for WPLMS.  By the way, I did update my WPLMS WP Theme to version 3.6. Also updated all plugins to version 3.6. Hopefully, the new WordPress updates to version 3.6 remain compatible with the Mobile App?
    apply plugin: 'com.android.application' buildscript { repositories { /* jcenter() ** moved this down ** po.2018jul04 */ maven { url "https://maven.google.com" } jcenter() } // Switch the Android Gradle plugin version requirement depending on the // installed version of Gradle. This dependency is documented at // http://tools.android.com/tech-docs/new-build-system/version-compatibility // and https://issues.apache.org/jira/browse/CB-8143 dependencies { classpath 'com.android.tools.build:gradle:2.2.3' } } // Allow plugins to declare Maven dependencies via build-extras.gradle. allprojects { repositories { /* jcenter() ** moved this down ** po.2018jul04 */ maven { url "https://maven.google.com" } jcenter() } }
    Thank you.
    #13433

    admin
    Member
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.