Browse Source

mid播放时要停止mp3触发事件

Steven 7 months ago
parent
commit
7a0b670ab1

+ 4 - 4
KulexiuForStudent/KulexiuForStudent.xcodeproj/project.pbxproj

@@ -7439,7 +7439,7 @@
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = KulexiuForStudent/KulexiuForStudent.entitlements;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 1.7.5.2;
+				CURRENT_PROJECT_VERSION = 1.7.5.4;
 				DEVELOPMENT_TEAM = B2AP53HHTU;
 				ENABLE_BITCODE = NO;
 				ENABLE_MODULE_VERIFIER = YES;
@@ -7626,7 +7626,7 @@
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = KulexiuForStudent/KulexiuForStudent.entitlements;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 1.7.5.2;
+				CURRENT_PROJECT_VERSION = 1.7.5.4;
 				DEVELOPMENT_TEAM = B2AP53HHTU;
 				ENABLE_BITCODE = NO;
 				ENABLE_MODULE_VERIFIER = YES;
@@ -7959,7 +7959,7 @@
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = KulexiuForStudent/KulexiuForStudent.entitlements;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 1.7.5.2;
+				CURRENT_PROJECT_VERSION = 1.7.5.4;
 				DEVELOPMENT_TEAM = B2AP53HHTU;
 				ENABLE_BITCODE = NO;
 				ENABLE_MODULE_VERIFIER = YES;
@@ -8250,7 +8250,7 @@
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = KulexiuForStudent/KulexiuForStudent.entitlements;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 1.7.5.2;
+				CURRENT_PROJECT_VERSION = 1.7.5.4;
 				DEVELOPMENT_TEAM = B2AP53HHTU;
 				ENABLE_BITCODE = NO;
 				ENABLE_MODULE_VERIFIER = YES;

+ 1 - 1
KulexiuForStudent/KulexiuForStudent.xcodeproj/xcshareddata/xcschemes/KulexiuForStudent.xcscheme

@@ -51,7 +51,7 @@
       </Testables>
    </TestAction>
    <LaunchAction
-      buildConfiguration = "TEST"
+      buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       launchStyle = "0"

+ 8 - 7
KulexiuForStudent/KulexiuForStudent/Common/Base/AccompanyWebView/KSAccompanyWebViewController.m

@@ -1340,13 +1340,14 @@
     }
     else if (self.isCompareStart) {
         NSLog(@"---- compare - record did start %f", time);
-        // 播放伴奏
-        dispatch_main_sync_safe(^{
-            self.musicPlayer.isMute = self.muteAccompany;
-            self.musicPlayer.rate = self.musicSpeed;
-            // 进度跳转
-            [self.musicPlayer seekToTimePlay:self.musicStartTime];
-        });
+        if (self.playerEngine == nil && _musicPlayer) {
+            dispatch_main_sync_safe(^{
+                self.musicPlayer.isMute = self.muteAccompany;
+                self.musicPlayer.rate = self.musicSpeed;
+                // 进度跳转
+                [self.musicPlayer seekToTimePlay:self.musicStartTime];
+            });
+        }
     }
 }