MoviaBox/Thimra/Class/Player/Model/SPPlayerProtocol.swift
2025-04-23 11:33:46 +08:00

43 lines
733 B
Swift

//
// SPPlayerProtocol.swift
// Thimra
//
// Created by on 2025/4/9.
//
import UIKit
protocol SPPlayerProtocol: NSObjectProtocol {
///
var playerFinishHadle: (() -> Void)? { get set }
var model: Any? { get set }
var videoInfo: SPVideoInfoModel? { get set }
var isCurrent: 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)
}