美文网首页
Unity: 导出的视频文件在安卓上报错

Unity: 导出的视频文件在安卓上报错

作者: Danny_Yan | 来源:发表于2019-10-17 16:47 被阅读0次
    10-17 16:35:38.537  8789  8883 W Unity   : AndroidVideoMedia::OpenExtractor could not translate archive:/CAB-bafd6f5d8dd2a5652b198892e30ac187/CAB-bafd6f5d8dd2a5652b198892e30ac187.resource to local file. Make sure file exists, is on disk (not in memory) and not compressed.
    10-17 16:35:38.537  8789  8883 W Unity   :
    10-17 16:35:38.537  8789  8883 W Unity   : (Filename: ./PlatformDependent/AndroidPlayer/Modules/Video/Private/AndroidVideoMedia.cpp Line: 327)
    10-17 16:35:38.537  8789  8883 W Unity   :
    10-17 16:35:38.537  8789  8883 W Unity   : AndroidVideoMedia: Error opening extractor: -10004
    10-17 16:35:38.537  8789  8883 W Unity   :
    10-17 16:35:38.537  8789  8883 W Unity   : (Filename: ./PlatformDependent/AndroidPlayer/Modules/Video/Private/AndroidVideoMedia.cpp Line: 471)
    10-17 16:35:38.537  8789  8883 W Unity   :
    
    该错误的原因是android进行了一次压缩,可以在导出的安卓工程中将那些导出的视频文件添加到noCompress中: image.png 也可以在PlayerSetting设置中模板: image.png 编辑该mainTemplate.gradle文件: image.png

    相关文章

      网友评论

          本文标题:Unity: 导出的视频文件在安卓上报错

          本文链接:https://www.haomeiwen.com/subject/crlvmctx.html