Skip to content

DaisukeNagata/RARFSlider

Repository files navigation

RARFSlider

Version License Platform

operation

It is a function to edit Video.

  • picButton opens a video album.

  • Button saves the edited video.

  • Merge combines the first and second edit videos.

  • Inside Trim is trims the selected inside.

  • Show or hide the UI by tapping the preview screen

version 0.4.5

You can set it to your favorite design.

    @IBOutlet public weak var rARFSlider: UISlider?

    @IBOutlet public weak var rARFTimeLabel: UILabel?
    @IBOutlet public weak var rARFDurationLabel: UILabel?

    @IBOutlet public weak var rARFPicBt: UIButton?
    @IBOutlet public weak var rARFTrimButton: UIButton?
    @IBOutlet public weak var rARFMergeButton: UIButton?
    @IBOutlet public weak var rARFInsideTrimButton: UIButton?

    @IBOutlet public weak var rARFPreView: RARFPreView?
    @IBOutlet public weak var rARFLargePreView: UIImageView?
    @IBOutlet public weak var rARFThumnaiIImageView: UIImageView?

Example

Requirements

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

RARFSlider is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'RARFSlider'

Code

class ViewController: RARFPickerViewController {

    private var sliderView: RARFSliderView?

    override func viewDidLoad() {
        super.viewDidLoad()

        sliderView = RARFSliderView()
        sliderView?.imagePick(vc: self, callBack: callBack)
    }

    func callBack() {
        sliderView?.removeFromSuperview()
        sliderView = RARFSliderView(frame: view.frame)
        view.addSubview(sliderView ?? RARFSliderView())
        sliderView?.rARFVc = self
        guard let url = url else  { return }
        //DESIGNSET
        sliderView?.rARFOpacity = 0.7
        sliderView?.rARFBorderWidth = 1
        sliderView?.rARFTopDownWhide = 1
        sliderView?.rARFBorderColor = .white
        sliderView?.rARFSetVideoModel.setURL(url: url, sliderView: sliderView ?? RARFSliderView(), height: 100, heightY: 100)
    }
}

Author

daisukenagata, dbank0208@gmail.com

License

RARFSlider is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published