27 lines
540 B
Swift
27 lines
540 B
Swift
//
|
|
// BRPlayerViewModel.swift
|
|
// BeeReel
|
|
//
|
|
// Created by 湖南秦九 on 2025/6/30.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class BRPlayerViewModel: NSObject {
|
|
|
|
|
|
@objc dynamic var isPlaying: Bool = true
|
|
|
|
var currentIndexPath = IndexPath(row: 0, section: 0)
|
|
|
|
var currentPlayer: BRPlayerProtocol? {
|
|
didSet {
|
|
oldValue?.isCurrent = false
|
|
oldValue?.pause()
|
|
|
|
self.currentPlayer?.isCurrent = true
|
|
// self.currentPlayer?.rate = rateModel.rate.getRate()
|
|
}
|
|
}
|
|
}
|