Code Monkey home page Code Monkey logo

Comments (6)

ronenmv avatar ronenmv commented on June 1, 2024

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.

v-kpheng avatar v-kpheng commented on June 1, 2024

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.

v-kpheng avatar v-kpheng commented on June 1, 2024

@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.

goncalocostamendes avatar goncalocostamendes commented on June 1, 2024

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.

v-kpheng avatar v-kpheng commented on June 1, 2024

@goncalocostamendes, yeah, let's port that to this as well, please. Thanks!

from opentok-ios-sdk-samples.

v-kpheng avatar v-kpheng commented on June 1, 2024

Tracked internally as https://jira.vonage.com/browse/OPENTOK-51225

from opentok-ios-sdk-samples.

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.