You need to enable JavaScript to run this app.
导航
高光成片接入
最近更新时间:2025.05.13 16:18:33首次发布时间:2025.05.13 16:18:33
我的收藏
有用
有用
无用
无用

一、功能概述

SDK对选择的图片或视频素材进行分类及打分,并匹配出推荐的模板进行视频合成。

二、前置条件

  1. 相册权限

  2. 集成剪同款(参考剪同款接入

三、接口

EOHighLightManager
alt

四、使用示例

申请相册权限后进入高光成片

public func _showHighLightViewController() {
    if !self.isAuthSucceeded {
        self.showToast("authority is failed!,please check it.")
        return
    }
    EOAlbumHelper.eoCheckAlbumAuthorized {
        EOHighLightManager.toHighLight()
    } restrictedOrDenied: { [weak self] in
        self?.showAlert(withTitle: NSLocalizedString("eo_home_camera_album_unauth_alert_title", comment: ""),
                              message: NSLocalizedString("eo_home_camera_album_unauth_alert_message", comment: ""),
                              cancelTitle: NSLocalizedString("eo_home_camera_unauth_alert_cancel", comment: ""),
                              confirmTitle: NSLocalizedString("eo_home_camera_unauth_alert_confirm", comment: ""),
                              cancelHandler: nil,
                              confirmHandler: {
            if #available(iOS 10.0, *) {
                UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!, options: [:]) { success in
                    // Completion handler
                }
            } else {
                UIApplication.shared.openURL(URL(string: UIApplication.openSettingsURLString)!)
            }
        })
    }
}