尝试为统一插件演示运行 VLC [英] Triying to run VLC for unity plugin demo
问题描述
这是存储库:https://code.videolan.org/videolan/vlc-团结
我终于能够构建插件了,但是当我尝试在 unity 中运行该示例时,出现了几个异常:
I was finally able to build the plugin, but when I try to run the example in unity, a couple of exceptions appear:
Assets\VLC-Unity-Windows\Scripts\UseRenderingPlugin.cs(32,25):错误 CS1061:MediaPlayer"不包含SetTime"的定义并且没有可访问的扩展方法SetTime"接受第一个参数可以找到类型MediaPlayer"(您是否缺少 using 指令或程序集引用?)
Assets\VLC-Unity-Windows\Scripts\UseRenderingPlugin.cs(32,25): error CS1061: 'MediaPlayer' does not contain a definition for 'SetTime' and no accessible extension method 'SetTime' accepting a first argument of type 'MediaPlayer' could be found (are you missing a using directive or an assembly reference?)
Assets\VLC-Unity-Windows\Scripts\UseRenderingPlugin.cs(95,40):错误 CS1061:MediaPlayer"不包含GetTexture"的定义并且没有可访问的扩展方法GetTexture"接受第一个参数可以找到类型MediaPlayer"(您是否缺少 using 指令或程序集引用?)
Assets\VLC-Unity-Windows\Scripts\UseRenderingPlugin.cs(95,40): error CS1061: 'MediaPlayer' does not contain a definition for 'GetTexture' and no accessible extension method 'GetTexture' accepting a first argument of type 'MediaPlayer' could be found (are you missing a using directive or an assembly reference?)
插件:无法加载Assets/VLC-Unity-Windows/Plugins/x86_64/plugins/VLCUnityPlugin.dll",因为无法加载其一个或多个依赖项.
Plugins: Failed to load 'Assets / VLC-Unity-Windows / Plugins / x86_64 / plugins / VLCUnityPlugin.dll' because one or more of its dependencies could not be loaded.
我正在使用这些版本的 dll,位于统一插件文件夹中:LibVLCSharp v3.4.3.0 libvlc.dll v3.0.8.0 libvlccore.dll v3.0.8.0
I am using these versions of dlls, located on unity plugin folder: LibVLCSharp v3.4.3.0 libvlc.dll v3.0.8.0 libvlccore.dll v3.0.8.0
以及存储库的最新版本.
and the last version of the repository.
你能帮我吗?
推荐答案
要完成这项工作,您需要:
To make this work, you need:
LibVLCSharp Unity 构建 netstandard2.0(4.0 版),
LibVLCSharp Unity build netstandard2.0 (version 4.0),
夜间 libvlc 4 llvm x64 构建
Nightly libvlc 4 llvm x64 build
Unity C++ 插件的构建
Build of the Unity C++ plugin
边缘仍然有点粗糙,缺少一些样本,但随着时间的推移会变得更好:-)
It's still a bit rough around the edges, lacks some samples but it will get better with time :-)
祝你好运.
这篇关于尝试为统一插件演示运行 VLC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!