很抱歉获得帮助请求,但是我无法弄清楚如何获得 bootstrap-vue模式,使其在页面加载时最初显示,而无需通过按钮或链接来触发。
>谢谢。
答案 0 :(得分:0)
您可以在Vue的let composition = AVMutableComposition(urlAssetInitializationOptions: <your options>)
let videoTrackA = composition.addMutableTrack(withMediaType:.video, preferredTrackID:kCMPersistentTrackID_Invalid);
let videoTrackB = composition.addMutableTrack(withMediaType:.video, preferredTrackID:kCMPersistentTrackID_Invalid);
videoTrackA.preferredTransform = CGAffineTransform(translationX: <yourX_for_A>, y:0.0)
videoTrackB.preferredTransform = CGAffineTransform(translationX: <yourX_for_B>, y:0.0)
事件中打开它,而不必尝试在页面加载时打开模式。
从Bootstrap-Vue网站上的示例代码中提升:
let exporter = AVAssetExportSession(asset:<yourAsset>, presetName:<yourPresetName>)
exporter.exportAsynchronously(completionHandler: <yourCompletionHandler>)