ThimraTV/MoviaBox/Class/Player/Model/SPPlayerProtocol.swift
2025-05-14 15:27:48 +08:00

45 lines
828 B
Swift

//
// SPPlayerProtocol.swift
// MoviaBox
//
// Created by on 2025/4/9.
//
import UIKit
@objc protocol SPPlayerProtocol: NSObjectProtocol {
///
var playerFinishHadle: (() -> Void)? { get set }
var model: Any? { get set }
var videoInfo: SPVideoInfoModel? { get set }
var isCurrent: Bool { get set }
///
@objc optional var hasLockUpEpisode: Bool { get set }
///
var duration: Int { get }
///
var currentPosition: Int { get }
var rate: Float { get set }
///
func prepare()
///
func start()
///
func pause()
///
func replay()
///
func seekToTime(toTime: Int)
}