LGRGitHub / RaydataTool

0 stars 0 forks source link

Video discoloration occurs when playing video using UnityPlugin-AVProVideo #1

Open LGRGitHub opened 4 years ago

LGRGitHub commented 4 years ago

In my project,I need to play network-loaded videos on different platforms(IOS,Android,WebGL).We encountered this problem when using UnityPlugin-AVProVideo play video on the iPad,The video will change color.Dynamic address play will change color but write dead address is fine.This issue is not present in the unity editor,Is that because of the platform or the API?And MediaPlayer and DisplayerUGUI are added dynamically using code. The following image is a screenshot of this situation. ShowVideo

Unity version: 2019.2.9 AVPro Video version: 1.10.0 Operating system version: iOS Device model: All Video specs: MP4(H.264)

AndrewRH commented 4 years ago

Hi,

It looks like this is because it isn't using our shaders to display the video. On iOS we require special shaders by default due to an optimisation.

You can disable this optimisation via the MediaPlayer component > Platform Specific > iOS section - disable "Use YpCbCr420"

Thanks,