杨锴
2025-04-16 09a372bc45fde16fd42257ab6f78b8deeecf720b
XQMuse/Root/CLPlayer/CLPlayerView.swift
@@ -8,6 +8,7 @@
import AVFoundation
import SnapKit
import UIKit
import JQTools
extension CLPlayerView {
    enum CLWaitReadyToPlayState {
@@ -235,15 +236,17 @@
        if config.rotateStyle == .small, isFullScreen { return }
        if config.rotateStyle == .fullScreen, !isFullScreen { return }
        switch UIDevice.current.orientation {
        case .portrait:
            dismiss()
        case .landscapeLeft:
            presentWithOrientation(.left)
        case .landscapeRight:
            presentWithOrientation(.right)
        default:
            break
        if let vc = JQ_currentViewController() as? CourseVC,vc.pageViewController.currentPage == 1{
            switch UIDevice.current.orientation {
                case .portrait:
                    dismiss()
                case .landscapeLeft:
                    presentWithOrientation(.left)
                case .landscapeRight:
                    presentWithOrientation(.right)
                default:
                    break
            }
        }
    }