多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
在本地预览之后添加如下代码 ~~~ [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; } ~~~