GithubHelp home page GithubHelp logo

Build Failed about cordova-plugin-iosrtc HOT 8 CLOSED

aks7665 avatar aks7665 commented on June 10, 2024
Build Failed

from cordova-plugin-iosrtc.

Comments (8)

hthetiot avatar hthetiot commented on June 10, 2024 1

Thx @aks7665 for leaving solution and closing the issue.

from cordova-plugin-iosrtc.

aks7665 avatar aks7665 commented on June 10, 2024

Found out the solution.
Need to use rosetta emulator.
Just change the settings of Xcode.
Product -> Destination -> Destination Architectures -> Select (Show Both)

After that while building the app select rosetta emulator device. For eg. iPhone 14 (rosetta)

from cordova-plugin-iosrtc.

aks7665 avatar aks7665 commented on June 10, 2024

@hthetiot Hi,

I am facing one more issue. How can I hide/remove the native UIView element. It keeps displaying even after all the tracks are stop. It shows a black screen on the place of video.

from cordova-plugin-iosrtc.

hthetiot avatar hthetiot commented on June 10, 2024

The video will be removed once the video tag is removed. The Black is the video itself.

See also:

from cordova-plugin-iosrtc.

aks7665 avatar aks7665 commented on June 10, 2024

@hthetiot I think the issue is related to something else.
I am getting a error message in the app: event must have a valid type property.
And it is in file Cordova-plugin-iosrtc/www/cordova-plugin-iosrtc.js

My Code:
On device ready method, I am doing this:

if (window.device.platform === 'iOS') {
            cordova.plugins.iosrtc.registerGlobals();
}

        $('body').append('<video id="scannerCameraPreview" class="camera" muted autoplay="autoplay" playsinline="playsinline" webkit-playsinline style="width:100%;height:calc(100vh - 150px);position:absolute;left:150px;top:100px;object-fit:fill; opacity: 1"></video>');

        
        let constraints;
        let platform = window.device.platform;
        if (platform == "browser") {
            constraints = {
                video: true,
                audio: false
            }
        } else {
            constraints = {
                video: { facingMode: { exact: "environment" } },
                audio: false
            }
        }

        constraints.video.width = { exact: 1280 };
        constraints.video.height = { exact: 720 };

        navigator.mediaDevices.getUserMedia(constraints).then(function(stream) {

            let camera = $("#scannerCameraPreview");

            cordova.plugins.iosrtc.observeVideo(camera);

            // Attach local stream to video element
            camera.srcObject = stream;

        }).catch(function(err) {
            console.error('getUserMediaError', err, err.stack);
            handle(error, errorCallback);
        });

Here my app is going in the catch block throwing that error (event must have a valid type property)
Please help me out what am I doing wrong.
Thanks

from cordova-plugin-iosrtc.

hthetiot avatar hthetiot commented on June 10, 2024

Here my app is going in the catch block throwing that error (event must have a valid type property)

Can you provide the full error stack using Safari remote debug ? This may be a know issues. Can you also tell me what webrtc framework you use if any, this may help also.

from cordova-plugin-iosrtc.

hthetiot avatar hthetiot commented on June 10, 2024

Not sure you need this anymore

cordova.plugins.iosrtc.observeVideo(camera)

from cordova-plugin-iosrtc.

hthetiot avatar hthetiot commented on June 10, 2024

@aks7665 feele free to open separate issue if your problems persists.

from cordova-plugin-iosrtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.