Commit 0d0f2cfa by pierce

fixed bugs

parent e940266c
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "share_small_icon_apple@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "share_small_icon_qq@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "share_small_icon_wechat@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
......@@ -120,11 +120,29 @@ class GDSettingItemBindCell: GDSettingItemBaseCell {
self.socialPlatImageView.isHidden = false
if model.plat == .apple {
self.socialPlatImageView.isHidden = true
faceImageView.snp.remakeConstraints({ make in
make.left.equalToSuperview()
make.size.equalTo(0)
make.centerY.equalToSuperview()
})
} else {
faceImageView.snp.remakeConstraints({ make in
make.left.equalToSuperview().offset(16)
make.size.equalTo(30)
make.centerY.equalToSuperview()
})
}
} else {
self.bindBtn.style = .circle
self.bindBtn.setTitle("绑定", for: .normal)
self.socialPlatImageView.isHidden = true
faceImageView.snp.remakeConstraints({ make in
make.left.equalToSuperview()
make.size.equalTo(0)
make.centerY.equalToSuperview()
})
}
}).disposed(by: disposeBag)
......
......@@ -55,6 +55,7 @@ public class GDURLVideoPlayView: BaseView {
if isValidString(self.videoUrl) == false {
return;
}
self.videoUrl = self.videoUrl.replacingOccurrences(of: "\t", with: "")
self.destroyEngine()
//使用默认配置
......@@ -81,7 +82,7 @@ public class GDURLVideoPlayView: BaseView {
self.player = IJKFFMoviePlayerController.init(contentURL: URL.init(string: self.videoUrl), with: options)
self.player?.setPauseInBackground(false)
//缩放模式
self.player?.scalingMode = .aspectFill
self.player?.scalingMode = .aspectFit
//设置自动播放模式
self.player?.shouldAutoplay = true
//准备播放
......
......@@ -68,8 +68,11 @@ class GDTeenagerPlayController: BaseViewController {
}
closeBtn.rx.tap
.bind(to: self.rx_dismissViewController)
.disposed(by: disposeBag)
.subscribe(onNext: { [weak self] _ in
self?.viewModel.leaveRoom()
self?.streamPlayView.destroyEngine()
self?.dismiss(animated: true)
}).disposed(by: disposeBag)
}
/// 流播放 View
......
......@@ -12,7 +12,8 @@ import RxCocoa
import GDToolBox
import GDRouter
let authArr: [GDPersonalAuthType] = [.phone, .idCard, .wechat]
//let authArr: [GDPersonalAuthType] = [.phone, .idCard, .wechat]
let authArr: [GDPersonalAuthType] = [.phone, .idCard]
class GDZoneInfoAuthCell: UITableViewCell {
......
......@@ -32,5 +32,28 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
return true
}
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
Bifrost.checkAllModules(with: #selector(application(_:open:options:)), arguments: [app, url, options])
}
func applicationDidBecomeActive(_ application: UIApplication) {
Bifrost.checkAllModules(with: #selector(applicationDidBecomeActive(_:)), arguments: [application])
}
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
Bifrost.checkAllModules(with: #selector(application(_:didRegisterForRemoteNotificationsWithDeviceToken:)), arguments: [application, deviceToken])
}
func applicationDidEnterBackground(_ application: UIApplication) {
Bifrost.checkAllModules(with: #selector(applicationDidEnterBackground(_:)), arguments: [application])
}
func applicationWillEnterForeground(_ application: UIApplication) {
Bifrost.checkAllModules(with: #selector(applicationWillEnterForeground(_:)), arguments: [application])
}
func applicationWillTerminate(_ application: UIApplication) {
Bifrost.checkAllModules(with: #selector(applicationWillTerminate(_:)), arguments: [application])
}
}
......@@ -2,6 +2,16 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>wtloginmqq2</string>
<string>mqqapi</string>
<string>mqqopensdkapiv2</string>
<string>mqqopensdkapiv3</string>
<string>mqq</string>
<string>mqqwpa</string>
<string>mqqopensdkssologin</string>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
......
......@@ -4,6 +4,10 @@
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.applesignin</key>
<array>
<string>Default</string>
</array>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:xs.cxylive.top/xiusechat/</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment