You need to enable JavaScript to run this app.
文档中心
智能视频创作SDK

智能视频创作SDK

复制全文
高级功能
高光成片接入
复制全文
高光成片接入

一、功能概述

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)!)
            }
        })
    }
}
最近更新时间:2025.05.13 16:18:33
这个页面对您有帮助吗?
有用
有用
无用
无用