|
@@ -272,6 +272,12 @@ class PQSelecteMusicView: UIView {
|
|
|
|
|
|
|
|
|
func playStuckPointMusic(itemData: PQVoiceModel?, isClearCurrentMusic: Bool = false) {
|
|
|
+ do {
|
|
|
+ try AVAudioSession.sharedInstance().setActive(true)
|
|
|
+ } catch let error {
|
|
|
+ BFLog(1, message: "激活声音控制失败 \(error)")
|
|
|
+ }
|
|
|
+
|
|
|
if itemData != nil, currentPlayData != itemData {
|
|
|
if !isValidURL(url: itemData?.musicPath ?? "") {
|
|
|
cShowHUB(superView: nil, msg: "本歌曲暂无伴奏版本哦~")
|