当前位置:网站首页>Summary of black screen problems in unity UMP packaging
Summary of black screen problems in unity UMP packaging
2022-07-19 04:36:00 【Jiubencai】
What I'm using now Unity The version is 2019.4.16f, In the use of UMP There is a black screen problem when playing the surveillance video stream . Summarize the solution to the problem .
Question 1 :UMP Plug in version issue
At first I used 2.0.2 Version of UMP I found this version in 2019 Of unity There are many problems in , Could have been in Resources->UMPSettings Configure related paths , But this version cannot . So please use 2.0.2 Plug ins above version .

The second question is :dll File path problem of
This is what you will find , There is no problem playing it on your computer after packaging , But there will still be a black screen problem when sending the bag to colleagues . Because you have to VLC It's an absolute path , You can't find it on others' computers .
1. Uncheck the Use installed VLC

2. Modify the code UniversalMediaPlayer->Editor->UMPPostBuilds Medium BuildWindowsPlayer64 function .
public static void BuildWindowsPlayer64(string path, UMPSettings settings)
{
string buildPath = Path.GetDirectoryName(path);
string dataPath = buildPath + "/" + Path.GetFileNameWithoutExtension(path) + "_Data";
if (!string.IsNullOrEmpty(buildPath))
{
if (!settings.UseExternalLibraries)
{
CopyPlugins(settings.AssetPath + "/Plugins/Win/x86_64/plugins/", dataPath + "/Plugins/plugins/");
// Modify the code
string[] files = Directory.GetFiles(dataPath + "/Plugins/x86_64/");
foreach (string str in files)
{
string file = Path.GetFileName(str);
Debug.LogError(file);
File.Copy(str, dataPath + "/Plugins/" + file);
}
Directory.Delete(dataPath + "/Plugins/x86_64/", true);
}
else
{
if (File.Exists(dataPath + "/Plugins/" + UMPSettings.LIB_VLC_NAME + ".dll"))
File.Delete(dataPath + "/Plugins/" + UMPSettings.LIB_VLC_NAME + ".dll");
if (File.Exists(dataPath + "/Plugins/" + UMPSettings.LIB_VLC_CORE_NAME + ".dll"))
File.Delete(dataPath + "/Plugins/" + UMPSettings.LIB_VLC_CORE_NAME + ".dll");
}
}
Debug.Log("Standalone Windows (x86_x64) build is completed: " + path);
}
Question 3 :64 Bit question
Please call when packing 64 Bit package .

边栏推荐
- mysql中的视图、触发器和存储过程
- WildFly:如何从位于另一个应用程序中的 EJB 调用 EJB
- [ruoyi Vue plus] learning notes 30 - redisson (VI) bounded blocking queue (redisson source code + Lua script)
- Codeforces Round #807 (Div 2.) AB
- Cabasicanimation pause \ enterprise action
- About the problem of database, the concept of uniqueness and non repetition
- MySQL中的删除:delete、drop、Truncate三者的区别
- surging作者出具压测结果
- New network security architecture: Zero trust security
- OpenLDAP自定义schema
猜你喜欢
随机推荐
Eas (energy aware scheduling) green energy-saving scheduler
JS模态框
Common errors in golang compilation
IPhone device numbers of major models
安全第三天iptables防止nmap扫描以及binlog
STM32 - timer series (II) general timer
微信小程序之项目结构
VB. Net plug-in development - extract files
MySQL表的查询进阶
Analysis of network attack detection technology for NDN
使用__slots__和__dict__来节省空间(简直就是质的飞越,LeetCode亲测有效)
百度地图技术概述,及基本API与WebApi的应用开发
Autojs learning-2048 small game automation
Swift - Generic
对称加密与非对称加密
【每日一题】剑指 Offer II 041. 滑动窗口的平均值
C语言动态内存开辟和柔性数组
如何配置Binlog
iptables防止nmap扫描以及binlog详解
MySql 一行变多行(根据特定符号分割)









