Skip to content

Commit d6ab5c4

Browse files
committed
Update fn+.swift
1 parent 5f4d468 commit d6ab5c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/swiftui-loop-videoplayer/fn/fn+.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ internal func handleVideoComposition(request: AVAsynchronousCIImageFilteringRequ
151151
/// - Returns: A new AVAsset with the video, audio, and subtitle tracks combined.
152152
/// Returns `nil` if an error occurs during the merging process or if subtitles are unavailable.
153153
func mergeAssetWithSubtitles(videoAsset: AVURLAsset, subtitleAsset: AVURLAsset) -> AVAsset? {
154+
155+
#if !os(visionOS)
156+
154157
// Create a new composition
155158
let composition = AVMutableComposition()
156159

@@ -213,4 +216,8 @@ func mergeAssetWithSubtitles(videoAsset: AVURLAsset, subtitleAsset: AVURLAsset)
213216
}
214217

215218
return composition
219+
220+
#else
221+
return nil
222+
#endif
216223
}

0 commit comments

Comments
 (0)