💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
在本地预览之后添加如下代码 ~~~ [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; } ~~~