🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
1.MHBeautyManager销毁之前只可创建一次,不可以同时new两个! 使用腾讯直播sdk时,使用setVideoQuality(int quality, boolean adjustBitrate, boolean adjustResolution)方法来设置视频编码质量,有可能会出现闪退问题。 2.第二次进入直播页面发生闪退: 请检查MHBeautyManager是否及时销毁,onDestroy方法可能会延迟调用,导致MHBeautyManager不能及时销毁,建议在onStop方法中调用停止预览画面,例如腾讯SDK。 1.MHBeautyManager can only be created once before destruction, not two new at the same time! When using Tencent live SDK, setVideoQuality(Int Quality, Boolean adjustBitrate, Boolean adjustResolution) is used to set the video encoding quality, which may cause flash back. 2. Flash back occurs when entering the live broadcast page for the second time: Please check whether MHBeautyManager is destroyed in time. OnDestroy method may be delayed, so MHBeautyManager cannot be destroyed in time. It is recommended to call stop preview screen in onStop method, such as Tencent SDK. ```  @Override     protected void onStop() {         if (isFinishing()) {             mLivePusher.stopCameraPreview(true);             mLivePusher.stopPusher();             ......         } } ```