B4J Tutorial [BANano] Capture webcam, microphone, screen

Discussion in 'B4J Tutorials' started by alwaysbusy, Apr 4, 2019.

  1. alwaysbusy

    alwaysbusy Expert Licensed User

    BANano 2.38+ contains a new library: BANanoMediaRecorder which allows you to capture video, audio or the screen (depends on the browsers what is allowed!)

    [​IMG]

    The zip contains the source code if you want to make changes to the lib itself. It is a good example on how easy it is to do rather complex things like this with BANano.

    A project using this library must run on https, with valid credentials.

    Note:
    I have included a 'theoretical' B4J server project to receive the recordered data, but I haven't been able to test it as it also requires some credentials too, but on another port. I currently receive an credentials error in the browser when uploading (may be updated in the future when I got it working).

    Some demos:

    Webcam (set to only do video)
    https://banano.alwaysbusy.org/camera

    ScreenCapture (does not work on a mobile as no browser supports this yet)
    https://banano.alwaysbusy.org/screen

    If it doesn't work, check in Windows Settings - Privacy if you have allowed apps to access your camera/microphone. Although you may give consent in your browser, these two parameters seem to override it anyway.

    [​IMG]

    BANano can be downloaded here: https://www.b4x.com/android/forum/t...library-with-abstract-designer-support.99740/

    Alwaysbusy
     
    Last edited: Apr 4, 2019
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice