RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
237 stars 29 forks source link

[Windows] Can support Vulkan on Windows or Unity Editor #2083

Open NieYanzhe opened 6 hours ago

NieYanzhe commented 6 hours ago

Unity version

2022.3.50f1

Unity editor platform

Windows

AVPro Video edition

Ultra

AVPro Video version

3.1.2

Device hardware

any windows device

Which Windows version are you using?

11

Graphics API

D3D 11

Video API

Media Foundation

Audio output

None_

Any other Media Player component configuration required to reproduce the issue.

No response

Which output component(s) are you using?

No response

Any other component configuration required to reproduce the issue.

No response

The issue

We will simulate the graphics performance of other platforms on Windows under Vulkan, so sometimes we will add the "-force-vulkan" arguments when starting the Unity Editor to force Vulkan rendering. However, Windows currently does not support Vulkan, which can cause exception.

Exception: Specified cast is not valid.
RenderHeads.Media.AVProVideo.MediaPlayer:SetLoadOptions() (at Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:652)
RenderHeads.Media.AVProVideo.MediaPlayer:InternalOpenMedia() (at Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:612)
RenderHeads.Media.AVProVideo.MediaPlayer:OpenMedia(Boolean) (at Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:514)
RenderHeads.Media.AVProVideo.MediaPlayer:OpenMedia(MediaPathType, String, Boolean) (at Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:493)
RenderHeads.Media.AVProVideo.MediaPlayer:OpenMedia(MediaPath, Boolean) (at Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:484)

Media information

No response

Log output

No response

Chris-RH commented 5 hours ago

We have no plans to support Vulkan on the Windows platform at this time.