Skip to content

Commit

Permalink
add public
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Dec 16, 2023
1 parent cc38cbd commit a4015a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/KSPlayer/Subtitle/KSParseProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public extension KSOptions {
static var subtitleParses: [KSParseProtocol] = [AssParse(), VTTParse(), SrtParse()]
}

extension String {
public extension String {
/// 把字符串时间转为对应的秒
/// - Parameter fromStr: srt 00:02:52,184 ass0:30:11.56 vtt:00:00.430
/// - Parameter fromStr: srt 00:02:52,184 ass 0:30:11.56 vtt 00:00.430
/// - Returns: 秒
func parseDuration() -> TimeInterval {
let scanner = Scanner(string: self)
Expand Down

0 comments on commit a4015a4

Please sign in to comment.