Comments (6)
following Yoav's question, the crash is happening cause of UInt32 to UInt16 casting,
a possible solution is :
public func estimatedRenderDelay() -> UInt16 {
let value = min(self.playoutDelay, UInt32(UInt16.max))
return UInt16(value)
}
this would avoid the crash I guess, but it might cause unexpected result,
please advice
from opentok-ios-sdk-samples.
Thanks, @YoavGro, for letting us know about this issue. We've been investigating this, actually: https://jira.vonage.com/browse/OPENTOK-48681.
We haven't had any success with reproducing the issue, though. That said, we added some resiliency to one of our sample applications. Can you please see if https://github.com/opentok/opentok-ios-sdk-samples-swift/pull/177/files helps you?
Thanks! 🙏
from opentok-ios-sdk-samples.
@goncalocostamendes, does https://github.com/opentok/opentok-ios-sdk-samples-swift/pull/177/files need to be ported to this repo as well?
Please advise. Thanks!
from opentok-ios-sdk-samples.
The final version is opentok/opentok-ios-sdk-samples-swift#178! We should debated if we port it to this sample as well, yes!
Regarding this issue raised in particular, in objc casting UInt32 to UInt16 should not raise a crash, but an overflow of the variable.
@YoavGro are you using our objc or swift samples (https://github.com/opentok/opentok-ios-sdk-samples or https://github.com/opentok/opentok-ios-sdk-samples-swift)?
from opentok-ios-sdk-samples.
@goncalocostamendes, yeah, let's port that to this as well, please. Thanks!
from opentok-ios-sdk-samples.
Tracked internally as https://jira.vonage.com/browse/OPENTOK-51225
from opentok-ios-sdk-samples.
Related Issues (20)
- Camera indicator is on, although I am not publishing video. HOT 2
- Add possibility to use PIP, Screenshare and Camera with iOS 16 HOT 5
- Crash iOS 14 [VGRTCDefaultVideoEncoderFactory supportedCodecs] HOT 4
- [AVCaptureSession startRunning] startRunning crash HOT 4
- Samples do not build on M1 mac (after update to OpenTok 2.24.2) HOT 5
- otk_session::on_answer crash HOT 2
- otk_peer_connection_manager::collect_garbage() crash HOT 1
- Unable to run test target with 2.25.2+ via cocoapods HOT 2
- [AVCaptureSession stopRunning] crash HOT 16
- Stability decrease since 2.25.0 HOT 6
- Call 4g black after 1 minute 48 seconds HOT 5
- SDK 2.26.1 memory increase high and freezing UI Screen HOT 4
- Disconnect after join session success HOT 4
- Update version 2.26.1 and getting error "96 duplicate symbols for architecture arm64" HOT 3
- 2.26.1 OTSubscriber init crash HOT 1
- Crash after closing video call HOT 16
- Update to version 1.27.1 broke archive HOT 1
- SDK require Privacy manifest HOT 4
- Cannot run samples with Video API Playground session & token HOT 3
- Screen share feature when application is in background state HOT 1
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 opentok-ios-sdk-samples.