react-native-video-trim 6.0.2 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ios/VideoTrim.swift
CHANGED
|
@@ -465,8 +465,14 @@ class VideoTrimmerViewController: UIViewController {
|
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
public func configure(config: NSDictionary) {
|
|
468
|
-
|
|
469
|
-
|
|
468
|
+
if let maxDuration = config["maxDuration"] as? Int, maxDuration > 0 {
|
|
469
|
+
maximumDuration = maxDuration
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
if let minDuration = config["minDuration"] as? Int, minDuration > 0 {
|
|
473
|
+
minimumDuration = minDuration
|
|
474
|
+
}
|
|
475
|
+
|
|
470
476
|
cancelButtonText = config["cancelButtonText"] as? String ?? "Cancel"
|
|
471
477
|
saveButtonText = config["saveButtonText"] as? String ?? "Save"
|
|
472
478
|
jumpToPositionOnLoad = config["jumpToPositionOnLoad"] as? Double ?? 0
|