CNLiveCommonManager.swift 682 Bytes
//
//  CNLiveCommonManager.swift
//  metaCode
//
//  Created by zx on 2023/11/29.
//

import Foundation


class CNLiveCommonManager: NSObject{
    
    //单例类
    static let shared = CNLiveCommonManager()
   
    /// 跳转播放器
    /// @param playURL 播放URL
    /// @param coverImage 封面图
    /// @param coverImageUrl 封面图url
    func skipPlayerVCWithPlayURL(playURL:URL,coverImage:UIImage?,coverImageUrl:String?){
        let vc = CNLivePlayerViewController()
        vc.setPlayUrl(playUrl: playURL, isLive: false)
        vc.coverImageUrl = coverImageUrl
        currentViewController()?.navigationController?.pushViewController(vc, animated: true)
    }
}