<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                * [ ] 設置代理對象 遵循TXVideoCustomProcessDelegate // 推流器初始化 ``` TXLivePush?*pusher = [[TXLivePush alloc] initWithConfig:config]; pusher.videoProcessDelegate= self; ``` l在代理方法即視頻渲染方法中賦值,如下所示: ``` - (GLuint)onPreProcessTexture:(GLuint)texture width:(CGFloat)width height:(CGFloat)height{ int newTexture = [self.beautyManager getTexrureProcessWithTexture:texture width:width height:height]; return newTexture; } ``` 說明: 1.如果是開啟直播有鏡像效果的話,設置 ``` [_txLivePublisher setMirror:YES]; ``` 如果初始化美顏UIisTXSDK參數傳入的是YES,則需要實現騰訊的美顏方法,具體如下: ``` #pragma mark - MHMenuView Delegate - (void)beautyEffectWithLevel:(NSInteger)beauty whitenessLevel:(NSInteger)white ruddinessLevel:(NSInteger)ruddiness { ? ? TXBeautyManager?*manager = [_pushergetBeautyManager]; [manager setBeautyStyle:TXBeautyStyleSmooth]; [manager setBeautyLevel:beauty]; [manager setWhitenessLevel:white]; [manager setRuddyLevel:ruddiness]; } ``` 如果isTXSDK傳入NO,則不需要實現該代理方法,則走的是美狐的美顏方法。 2.如果需要適配性能較低手機,需要更換成以下調用方式 1.在ViewController中添加布爾值BOOL _needScale; 2.在ViewController中添加checkDeivice方法: ``` ?- (void)checkDevice{ /*獲取當前機型,判斷是否為 iPhone7 及以上*/ struct?utsname systemInfo; uname(&systemInfo); NSString *platform = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]; NSArray *symbols = [platform componentsSeparatedByString:@","]; if(symbols.count > 0){ NSCharacterSet *characterSet = [[NSCharacterSet decimalDigitCharacterSet] invertedSet]; NSInteger number = [[[symbols[0] componentsSeparatedByCharactersInSet:characterSet] componentsJoinedByString:@""] integerValue]; //iPhone9,1 -> iPhone 7 if(number >= 9){ _needScale = NO; }else{ _needScale = YES; } } } ``` 3.在回調中判斷是否需要縮放 ``` -(GLuint)onPreProcessTexture:(GLuint)texture width:(CGFloat)widthheight:(CGFloat)height{ GLuint newTexture = texture; if?(_needScale){ newTexture = [_beautyManager processWithTexture:texture width:width height:height scale:0.75]; }else{ [self.beautyManager processWithTexture:texture width:width height:height]; } return?newTexture ; } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看