horizoncamera / horizonsdk-ios Goto Github PK
View Code? Open in Web Editor NEWHorizon SDK for iOS
Home Page: https://horizon.camera/sdk
License: Other
Horizon SDK for iOS
Home Page: https://horizon.camera/sdk
License: Other
It would be great to have possibility to move watermark in HVTView and have possibility to place some button at right bottom corner over the view.
I am experiencing memory leaks in the following scenario. I am using an HTV camera in 2 different classes .
Here is my code.
//Launch Camera in class A //HTVVideo mode
(void)launchCamera {
self.camera = [HVTCamera new];
[self.camera setCaptureDevice:[self getCaptureDeviceForcameraType:AVCaptureDeviceTypeBuiltInTelephotoCamera] error:nil];
[self.camera setLevelerFlexSpeed: HVTLevelerFlexSpeedResponsive];
[self.camera setDelegate:self];
[self.preview setFillMode:HVTViewFillModeAspectFill];
[self.camera addView:self.preview];
if(![self.camera isRunning]) {
[self.camera startRunning];
return;
}
}
//Launch Camera in class B //HVTCaptureModePhoto
(void)launchCamera {
self.camera = [HVTCamera new];
[self.camera setLevelerFlexSpeed: HVTLevelerFlexSpeedResponsive];
[self.camera setDelegate:self];
[self.preview setFillMode:HVTViewFillModeAspectFill];
[self.camera setCaptureMode:HVTCaptureModePhoto cameraPosition:AVCaptureDevicePositionBack];
[self.camera setCaptureDevice:[self getCaptureDeviceForcameraType:AVCaptureDeviceTypeBuiltInTelephotoCamera] error:nil];
[self.camera setInterfaceOrientation:UIInterfaceOrientationPortrait];
[self.camera addView:self.preview];
if(![self.camera isRunning]) {
[self.camera startRunning];
return;
}
}
The memory leaks when try to launch camera for class A after camera launch for class B (Launching Video camera after Capture camera).
Logs. :
testVideos[44586:12022901] [BackgroundTask] Background Task 4 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2022-01-04 23:19:53.187075+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 5 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2022-01-04 23:20:47.975246+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 6 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2022-01-04 23:20:49.976846+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 7 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2022-01-04 23:21:57.910423+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 8 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2022-01-04 23:22:00.911954+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 9 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2022-01-04 23:22:08.913345+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 10 ("Called by HorizonSDK, from -[HVTCamera recordingStarting]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this
I just wanted to say well done! ๐
excellent work.
Is there any instructions for using the sample apps? I can't change Bundle ID without a crash, and can't create a provisioning profile for that bundle ID
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.