Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending CMSampleBuffer causes error in Broadcast Extension. #9

Open
Ashvin-Ranjan opened this issue Aug 4, 2020 · 7 comments
Open

Comments

@Ashvin-Ranjan
Copy link

I have been working on sending CMSampleBuffer data out of a broadcast extension and this has been causing me trouble, sending strings though peertalk in the extension is working, but when I send CMSampleBuffers is causes an error. Here is my code:

ptManager.sendObject(object: sampleBuffer, type 102)

That does not work but when I do this:

ptManager.sendObject(object: "test", type 102)

it does work, what is going on here?

@asolanki-in
Copy link

Did you figured it out?? I am also having same error.

MY extension crashed as is says memory 50mb exceed error.

@Ashvin-Ranjan
Copy link
Author

Ashvin-Ranjan commented Feb 25, 2022

Hi, I remember solving this but i am unsure how exactly I managed to do it. I will check over my code and see if I can find the solution.

Edit: Unfortunately I do not have access to the code anymore. It is private and I had transferred it to an organization which I am no longer in.

@asolanki-in
Copy link

That would be great thanks

@Ashvin-Ranjan
Copy link
Author

In case you did not see my edit I no longer can access the original project, so unfortunately I cannot give you the solution I had found. I am sorry about that but there is nothing I can do.

@asolanki-in
Copy link

Do you remember any special case where you handled it?

Like compressed Data byte then send

@asolanki-in
Copy link

My upload extension crashes cause of 50 mb memory limit by iOS. I think peertalk retaining data inside that is why memory exceeding

@Ashvin-Ranjan
Copy link
Author

Do you remember any special case where you handled it?

Like compressed Data byte then send

I remember that i was sending screen data over the connection but I don't remember what I did to fix it, I think I added video compression to fix it but that's as much as I can remember, it has been around 2 years since then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants