21 lines
442 B
Swift
21 lines
442 B
Swift
//
|
|
// RecordPlayerServiceProtocol.swift
|
|
// AutoCatCore
|
|
//
|
|
// Created by Selim Mustafaev on 31.03.2025.
|
|
// Copyright © 2025 Selim Mustafaev. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public protocol RecordPlayerServiceProtocol {
|
|
|
|
var currentPlayingId: String? { get }
|
|
|
|
func play(
|
|
record: AudioRecordDto,
|
|
onStop: ((AudioRecordDto, Error?) -> Void)?,
|
|
onProgress: ((Double) -> Void)?
|
|
) throws
|
|
}
|