无法从照片库中压缩.mp4视频

时间:2017-01-31 08:19:53

标签: ios swift video compression avurlasset

任何人都可以帮我修复此问题,在压缩视频时出错:

NSLocalizedFailureReason =发生未知错误(-12780)

<div id="Tum" class="w3-container training">
<h2>TUM</h2>
<?php include("tum.php");  ?>
</div>

<div id="Atol" class="w3-container training" style="display:none">
<h2>ATÖLYE</h2>
<?php include("atol2.php");  ?>
</div>

<div id="Uzman" class="w3-container training" style="display:none">
<h2>UZMANLIK</h2>
<?php include("uzman.php");  ?>
</div>

1 个答案:

答案 0 :(得分:2)

使用这种方式:

替换

let destinationPath =  NSURL(string: VideoFilePath)!     

let destinationPath =  NSURL(fileURLPath: VideoFilePath)!