pj4533 / avcapturemultipeervideodataoutput Goto Github PK
View Code? Open in Web Editor NEWSends video using Multipeer Connectivity
License: MIT License
Sends video using Multipeer Connectivity
License: MIT License
AVCaptureDeviceInput *videoDeviceInput = [AVCaptureDeviceInput deviceInputWithDevice:videoDevice error:nil];
[_captureSession addInput:videoDeviceInput];
movieFileOutput = [[AVCaptureMovieFileOutput alloc] init];
[_captureSession addOutput:movieFileOutput];
// Create output
multipeerVideoOutput = [[AVCaptureMultipeerVideoDataOutput alloc] initWithDisplayName:[[UIDevice currentDevice] name]];
[_captureSession addOutput:multipeerVideoOutput];
[_captureSession commitConfiguration];
Is this not possible?
Hi!
I will be crash,
log:
2014-01-07 23:24:26.254 MultipeerVideoOutputSample[2133:3e0f] PEER CONNECTED: iPad Simulator
2014-01-07 23:24:33.917 MultipeerVideoOutputSample[2133:60b] Received memory warning.
2014-01-07 23:24:36.547 MultipeerVideoOutputSample[2133:60b] Received memory warning.
how i can fix it?
Jack
When using higher rate rates (or lower frame rates on older devices), the number of frames "in flight" goes up, thus using more memory. Probably need some sort of memory buffer handling that limits sending frames when reaching a certain number in flight.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.