Skip to content

Mirroring on Banuba Face AR SDK (Web)? #16

@A-Krasko

Description

@A-Krasko

How we can switch mirroring option on Webcam process? Here how we init Banuba, is it possible to add some default param to include mirror camera?

const wcam = new Webcam({ width: 640, height: 480 })
 const [player, modules] = await Promise.all([
   Player.create({
     devicePixelRatio: 1,
     clientToken: TOKEN,
     locateFile: {
       "BanubaSDK.data": data,
       "BanubaSDK.wasm": wasm,
       "BanubaSDK.simd.wasm": simd,
     },
   }),

   Module.preload(["face_tracker"].map(m => `https://cdn.jsdelivr.net/npm/@banuba/webar/dist/modules/${m}.zip`))
 ])

 await player.addModule(new Module(FaceTracker))

 player.use(wcam)
 Dom.render(player, "#webar")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions