Video render of Peer causes a PThread error

Hello,

We are struggling on Pthread error on the first run of the call and it works perfectly on the second run of the call and so on.

Versions:
Web Browser: Chrome v104
Ionic 6
Capacitor Android 3.5.1
Capacitor App 1.1.1
Capacitor Core 3.5.1
Android 10
Video SDK 1.4.0

We used Ionic as a cross-platform in order for us to create APK bundle and install it in the mobile.

If Web browser and mobile is running on localhost, we did not encounter any Pthread error, however when we deploy it to staging/production, The Android device who is using an APK bundle will receive a PThread error when receiving a remote view.

2022-08-25 21:05:07.411 10556-10695/io.ionic.starter E/Capacitor: JavaScript Error: {"type":"js.error","error":{"message":"Uncaught ReferenceError: PThread is not defined","url":"blob:http://localhost/b0a39bd9-ffe7-47f2-903c-a523797916d2","line":1,"col":123315,"errorObject":"null"}}
2022-08-25 21:05:07.420 10556-10556/io.ionic.starter E/Capacitor/Console: File: blob:http://localhost/b0a39bd9-ffe7-47f2-903c-a523797916d2 - Line 1 - Msg: Uncaught ReferenceError: PThread is not defined
2022-08-25 21:05:07.443 10556-10556/io.ionic.starter E/Capacitor/Console: File: blob:http://localhost/b0a39bd9-ffe7-47f2-903c-a523797916d2 - Line 1 - Msg: Uncaught ReferenceError: PThread is not defined
2022-08-25 21:05:07.672 10556-10695/io.ionic.starter E/Capacitor: JavaScript Error: {"type":"js.error","error":{"message":"Uncaught ReferenceError: PThread is not defined","url":"blob:http://localhost/b0a39bd9-ffe7-47f2-903c-a523797916d2","line":1,"col":123315,"errorObject":"null"}}
2022-08-25 21:05:07.704 10556-10556/io.ionic.starter E/Capacitor/Console: File: blob:http://localhost/b0a39bd9-ffe7-47f2-903c-a523797916d2 - Line 1 - Msg: Uncaught ReferenceError: PThread is not defined