本文介绍了Easy Movie Texture在Unity编辑器中播放,但不能在设备上播放.我想念什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用资产商店中的Easy Movie Texture资产,并且正在尝试在iPhone 7设备上播放嵌入式mp4文件.它可以很好地用于流URL,但是一旦我尝试实际加载()mp4文件,它的响应就会非常无益:

We're using the Easy Movie Texture asset from the asset store and we are trying to play embedded mp4 files on an iPhone 7 device. It works fine with streaming URLs but once I tried to actually Load() an mp4 file it response very unhelpfully:

[prepareAsset]错误:无法播放项目未知错误0MediaPlayerCtrl:OnError(MEDIAPLAYER_ERROR,MEDIAPLAYER_ERROR)

[prepareAsset]Error: Item cannot be playedUnknown error 0MediaPlayerCtrl:OnError(MEDIAPLAYER_ERROR, MEDIAPLAYER_ERROR)

在编辑器和在iOS设备上播放之间是否有任何特别的陷阱?

Is there any special gotchas anyone has seen with the difference between playing in editor and on an iOS device?

推荐答案

问题最终是比特率.一旦我们使用Adobe(而不是ffmpeg)对视频进行编码,那么这些视频就可以正常工作.

The issue ended up being the bitrate. Once we encoded the videos with Adobe instead of ffmpeg, it the videos seemed to work fine.

这篇关于Easy Movie Texture在Unity编辑器中播放,但不能在设备上播放.我想念什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 23:23