xiaoyaocz / nsdanmaku Goto Github PK
View Code? Open in Web Editor NEW一个简单的UWP 弹幕控件
一个简单的UWP 弹幕控件
支持这个应用。加油
您好我又来了😂这边的代码我也想改改,征求一下许可。本来想提pull request的,但是改动有点乱,你看着有什么需要的直接搞回去就好。
作为一个类库的使用者,我需要使用第三方类库时尽量使用编译好的 nuget 包。我不希望我的 UWP 项目里面出现别人的源代码。
像手机客户端一样可以过滤不同等级用户的弹幕
可以自定义弹幕的字体
下载原始项目解析后,发现问题出现在Danmaku.xaml.cs
文件第905行:
var rotateZ = Convert.ToDouble(data[5]);
在解析某一条高级弹幕时,data[5]的值是空字符串,导致无法解析为double,然后会报错。
由于测试用例有限,可能还会有其它类似的情况,可以考虑写一个方法来替换Convert.ToDouble()
,比如:
private double ConvertDouble(object data, double defaultValue = 0d)
{
try
{
return Convert.ToDouble(data);
}
catch (Exception)
{
return defaultValue;
}
}
这样降低错误发生的风险。
感谢逍遥橙子的付出,这个项目帮我节省了大量的时间。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.