Giter Club home page Giter Club logo

Comments (14)

bsrao avatar bsrao commented on May 27, 2024 1

@MathiasDum @karolkulesza I am able to screen share from the extension using iOS 2.11.3 but looks like there is an issue with 2.15. Please try 2.11.3 for now, meanwhile we will look into the issue with 2.15.

from opentok-ios-sdk-samples-swift.

bsrao avatar bsrao commented on May 27, 2024

@karolkulesza Is it possible to provide a sample app that demonstrate the issue ? so that I can check what is going on.

from opentok-ios-sdk-samples-swift.

karolkulesza avatar karolkulesza commented on May 27, 2024

@bsrao :

Hi Sridhar,

Yes, I've just shared with you (via @) a test empty app with iOS Broadcast Extension that connects with TokBox (directly from this extension) and tries to send a sample image frame (from local resources). I've used the sample code provided OpenTok, for screen sharing scenario (see TBScreenCapture class, where instead of screenshot of the app, I'm using a static image from local resources).

Before running it, please update "sessionId" and "token" values with valid ones, in class SampleHandler, in BroadcastExtension target.

After installing on iOS device, you won't see anything in the app itself, you have to invoke iOS broadcasting feature on iOS12. In order to do that, on iOS12 device please enable "Screen Recording" feature to be visible in iOS Control Center (via Settings -> Control Center -> Customize Controls) and then start broadcasting by showing Control Center, 3D tapping on broadcast/record icon and selecting "BroadcastExtension" from the list (as indicated in the screenshot attached here).

Optionally, if you'd like to debug this Broadcast Extension (as it is a separate process on iOS), you can use "Debug -> Attach to Process" feature in Xcode.

Let me know please in case of any issues in reproducing it.

Regards,
Karol

image

from opentok-ios-sdk-samples-swift.

MathiasDum avatar MathiasDum commented on May 27, 2024

I'm having the the same issue

from opentok-ios-sdk-samples-swift.

etown avatar etown commented on May 27, 2024

Are you able to also process the app audio from the broadcast extension?

from opentok-ios-sdk-samples-swift.

karolkulesza avatar karolkulesza commented on May 27, 2024

@etown :
Yes, please take a look at one of the methods declared by RPBroadcastSampleHandler protocol:

image

from opentok-ios-sdk-samples-swift.

etown avatar etown commented on May 27, 2024

@karolkulesza Thank you, I am aware replaykit provides the frames, but Iā€™m looking to see in example of consuming the audio with opentok. Thank you!

from opentok-ios-sdk-samples-swift.

etown avatar etown commented on May 27, 2024

@karolkulesza could you please share the sample extension project you had before? it would be extremely helpful. thank you!

from opentok-ios-sdk-samples-swift.

etown avatar etown commented on May 27, 2024

@bsrao can you confirm if the issue is currently affecting 2.15? also, could you provide replaykit sample code? thank you!

from opentok-ios-sdk-samples-swift.

bsrao avatar bsrao commented on May 27, 2024

@etown Yes, it is effecting 2.15. I don't have any sample code that I can share but it will be straight forward, as @karolkulesza shared, you need to grab the frame from processSampleBuffer and consume it using external capturer (you can use custom video driver class in the sample repo).

from opentok-ios-sdk-samples-swift.

msach22 avatar msach22 commented on May 27, 2024

Hi Folks, we don't have any sample code for this yet, but we are working on fix that should be released with 2.16.0.

from opentok-ios-sdk-samples-swift.

bsrao avatar bsrao commented on May 27, 2024

This is an almost finished working sample for Broadcast extension using OpenTok SDK : https://github.com/opentok/opentok-ios-sdk-samples/tree/broadcast-ext-sample
Feel free to share any issues you find!

from opentok-ios-sdk-samples-swift.

TheNasirKhan avatar TheNasirKhan commented on May 27, 2024

I have implemented the above extension in my project but it doesn't send any frame to the other side, even i have tried it directly from this project. it doesn't appear other side of a call even though a session is being created, frames are available it doesn't even add a subscriber to the other side.

It always post error in didFailWithError, with an error "Timed out while attempting to publish."

from opentok-ios-sdk-samples-swift.

v-kpheng avatar v-kpheng commented on May 27, 2024

Apologies for the belated reply. The Timed out while attempting to publish error suggests that frames aren't being sent. There may be multiple reasons for this but unlikely to be related to the SDK. Can you please see if you can reproduce using the updated version: https://github.com/opentok/opentok-ios-sdk-samples/tree/main/Broadcast-Ext? Also, the broadcast sample app only works for H264.

from opentok-ios-sdk-samples-swift.

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.