Comments (8)
Thx @aks7665 for leaving solution and closing the issue.
from cordova-plugin-iosrtc.
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.
@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.
The video will be removed once the video tag is removed. The Black is the video itself.
See also:
- https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/docs/iosrtc.md#iosrtcrefreshvideos
- https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/docs/videoCSS.md#video-css
from cordova-plugin-iosrtc.
@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.
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.
Not sure you need this anymore
cordova.plugins.iosrtc.observeVideo(camera)
from cordova-plugin-iosrtc.
@aks7665 feele free to open separate issue if your problems persists.
from cordova-plugin-iosrtc.
Related Issues (20)
- Does the plugin cordova-plugin-iosrtc works with quasar framework. HOT 2
- error: the use of xcframeworks is not supported in the legacy build system...my xcode xcode project. Build System : New Build System HOT 2
- Implementing Mediapipe Pose on ionic IOs using iosRTC HOT 1
- Add flashlight control HOT 4
- Add video border radius support HOT 1
- Enable/Disable track from Receiver/Sender is broken in case of use with Janus Videoroom HOT 5
- Getting error in connecting ios device microphone and video in openvidu ionic HOT 5
- RTCRtpSender not have DTMF properties and createDTMFSender deprecate HOT 4
- PrecompileSwiftBridgingHeader fails after first successful build ('WebRTC/RTCAudioSource.h' file not found) HOT 9
- Pretty bad H264 performance after upgrading to iOS 15.4 HOT 24
- blank screen issue HOT 2
- HTML element over video HOT 1
- Own audio shut down during video conference HOT 5
- App failing to build because of the plugin HOT 4
- navigator.mediaDevices is undefined HOT 2
- cordova iosrtc app crash on iphone device - 'NSInternalInconsistencyException', HOT 12
- Twilio VideoJs adaptive simulcast undefined error, because of missing width and height properties from MediaTrackSettings HOT 6
- Call canceled when callee pickup the phone. HOT 3
- Bug: Can't install plugin on latest cordova/xcode HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-iosrtc.