Skip to content

Commit

Permalink
Merge pull request #1627 from shogo4405/feature/fix-movieFragmentInte…
Browse files Browse the repository at this point in the history
…rval

Fix Add the movieFragmentInterval value to the recording feature 2.0.x
  • Loading branch information
shogo4405 authored Nov 18, 2024
2 parents 2f275c8 + 6e48a44 commit f433315
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HaishinKit/Sources/HKStream/HKStreamRecorder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ public actor HKStreamRecorder {
}

writer = try AVAssetWriter(outputURL: outputURL, fileType: fileType)
if let movieFragmentInterval {
writer?.movieFragmentInterval = CMTime(seconds: movieFragmentInterval, preferredTimescale: 1)
}
videoPresentationTime = .zero
audioPresentationTime = .zero
self.settings = settings
Expand Down

0 comments on commit f433315

Please sign in to comment.