<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                - 設置代理對象(set the proxy object) ``` TXVideoCustomProcessDelegate ``` ``` TXLivePush *pusher = [[TXLivePush alloc] initWithConfig:config]; ``` ``` pusher.videoProcessDelegate = self; ``` - 在代理方法即視頻渲染方法中賦值,如下所示(Assign values in the proxy method, i.e. video rendering method, as shown below): ``` - (GLuint)onPreProcessTexture:(GLuint)texture width:(CGFloat)width height:(CGFloat)height{ int newTexture = [self.beautyManager getTexrureProcessWithTexture:texture width:width height:height]; return newTexture; } ``` Tip: 1. 如果是開啟直播有鏡像效果的話,設置(if the live broadcast is enabled and has the image effect,set) ``` [_txLivePublisher setMirror:YES]; ``` 2. 如果調用騰訊的美顏,則需要實現代理方法,具體如下(If you call Tencent's beauty, you need to implement the proxy method, as follows:) ``` #pragma mark - MHMenuView Delegate - (void)beautyEffectWithLevel:(NSInteger)beauty whitenessLevel:(NSInteger)white ruddinessLevel:(NSInteger)ruddiness { TXBeautyManager \*manager = [_pusher getBeautyManager]; [manager setBeautyStyle:TXBeautyStyleSmooth]; [manager setBeautyLevel:beauty]; [manager setWhitenessLevel:white]; [manager setRuddyLevel:ruddiness]; } ``` 1. 如果需要適配性能較低手機,需要更換成以下調用方式( If you need to adapt to a mobile phone with low performance, you need to replace it with the following calling method) 1\. ViewController add BOOL \_needScale; 2\. ViewController add checkDeivice method: ``` - (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.在回調中判斷是否需要縮放(Determine whether scaling is required in the callback) ``` -(GLuint)onPreProcessTexture:(GLuint)texture width:(CGFloat)width height:(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>

                              哎呀哎呀视频在线观看