企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
在本地预览之后添加如下代码 ~~~ [self.engine subscribeVideoTexture:@"" videoSource:(AliRtcVideoSource)AliRtcVideosourceCameraLarge Type videoTextureType:AliRtcVideoTextureTypePre]; [self.engine onVideoTextureCreated:@"" videoTextureType:AliRtcVideoTextureTypePre context:(__bridge void *)([[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2])]; ~~~ 在视频渲染方法中赋值 ~~~ - (int)onVideoTexture:(NSString *)uid videoTextureType:(AliRtcVideoTextureType)videoTextureType textureId:(int)textureId width:(int)width height:(int)height rotate:(int)rotate extraData:(long)extraData{ int newTexture = [self.beautyManager processAliRTCWithTexture:textureId width:width height:height]; return newTexture; } ~~~