feat: pip for metal renderer

This commit is contained in:
Acaki
2025-07-15 22:37:58 +08:00
parent 7691d2c0eb
commit fa7710ce44
5 changed files with 194 additions and 89 deletions
+1 -1
View File
@@ -106,7 +106,7 @@
// Initializing the renderer must be done on the main thread
dispatch_async(dispatch_get_main_queue(), ^{
self->_videoRenderer = [[VideoDecoderRenderer alloc] initWithView:self->_renderView callbacks:self->_callbacks streamAspectRatio:(float)self->_config.width / (float)self->_config.height];
self->_videoRenderer.pipLayer = self.pipLayer;
self->_connection = [[Connection alloc] initWithConfig:self->_config renderer:self->_videoRenderer connectionCallbacks:self->_callbacks];
NSOperationQueue* opQueue = [[NSOperationQueue alloc] init];
[opQueue addOperation:self->_connection];