• Stars
    star
    204
  • Rank 191,108 (Top 4 %)
  • Language
    C#
  • Created almost 6 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Windows 桌面动态壁纸 视频壁纸

DMSkin-Wallpaper-Maker

Windows 桌面动态壁纸 视频壁纸

!!!!此项目目前运营中,招募开发者,测试,推广,有兴趣请联系我(PS:没有工资的哟,目前软件也是免费软件)。QQ944095635!!!!!

本项目只开源最核心的内容

所以你下载的源码只能将本地视频设为动态壁纸

你从发布里面下载的程序是编译好的,在核心功能上增加了新功能

下载地址

开源的动态桌面壁纸。

【前言】

Wallpaper.Maker 采用WIN32 接口实现视频嵌入桌面。

Wallpaper.Maker 最开始采用的是迅雷Aplayer,CPU使用率颇高15%-30%,

现阶段改为libvlcsharp,CPU使用率降低至1%-5%(跟个人电脑配置有关)

【项目结构】

项目名称 描述 特性 缺点
Wallpaper.Maker 主程序 - -
DMSkin.WPF UI库 UI的一些封装 开发时需要从Github或Nuget获取
Wallpaper.Player Vlc解码器 HTTP支持,超多格式(GIF,MP4.AVI.FLV.WEBM.RMVB) 解码库体积(24MB)
Wallpaper.Server 通讯协议 负责主程序和解码器之间的通讯 NamedPipe命名管道通讯

【执行逻辑】

  • 服务PlayServer是作为程序之间数据交互的基础,通讯原理是NamedPipe命名管道通讯。

  • 主程序Maker程序启动的时候,会根据服务PlayServer检测系统进程中是否存在解码器Player

  • 如果存在对应解码器Player进程,程序不会执行任何操作(如果不存在,主程序Maker会启动解码器Player)。

  • 主程序Maker解码器Player分离,减少内存消耗。主程序退出之后解码器Player依然会运行(主程序中可以关闭解码器进程)。

【使用&修改】

1. 下载使用

你可以直接下载压缩包解压运行。

主程序

解码器百度网盘下载

解码器Vlc官网下载 下载最新的Vlc播放器压缩包解压之后,提取需要的解码器文件.

解码器文件放至主程序软件目录中的libvlc文件夹中

/libvlc

/libvlc/plugins

/libvlc/libvlc.dll

/libvlc/libvlccore.dll

2. 下载源码 然后自己编译

下载源码 点击 Wallpaper.Maker.sln 打开项目。

目前解码器使用的是libvlcsharp

libvlcsharp 是根据开源视频解码器Vlc进一步封装的.NET 版本,它支持Winform和WPF.

当前项目的解码器部分使用的是Winform版本,因为它的效率更高资源占用更低。

开发的时候需要从Nuget 安装,Nuget版本没有修改解码器的加载路径

【自定义解码器】

虽然目前只内置解码器libvlcsharp

但是你可以通过编写代码实现自己的解码器(例如用迅雷Aplayer解码器)

/// <summary>
/// 放到解码器初始化的地方-解码器必须一直处于运行状态 Winform/WPF/Console 都支持
/// </summary>
NamedPipeListenServer server = new NamedPipeListenServer("Play.Server")
{
    ProcessMessage = ProcessMessage
};
server.Run();

/// <summary>
/// 处理请求-例如处理客户端 Open URL的请求
/// </summary>
public void ProcessMessage(ServerMsg msg, NamedPipeServerStream pipeServer)
{
    switch (msg.ServerMsgType)
    {
         case ServerMsgType.OpenUrl:
            ///让你的播放器执行播放视频操作
            break;
    }
    pipeServer.Close();
}

【联系】

欢迎加入我们:

捐赠

如果你觉得这个框架真的对你很有帮助,欢迎给我捐赠,这将鼓励我做的更好!

【更新日志】

1.0.0.2(2018-11-29)

1.解码器改为官网封装的libvlcsharp

1.0.0.1 (2018-11-24)

  1. 因迅雷Aplayer解码器性能低,系统兼容性差,故舍弃。
  2. 解码器改用Vlc.DotNet,CPU使用率从 15-30% 降低到 3%-5% 。

1.0.0.0 (2018-10-25)

  1. 解码器初步完成。
  2. 操作软件初步完成。

#### 【注意 源码编译&亚克力玻璃材质】

- 基于VS 2017 旗舰版开发,.NET 4.5.5开发环境(理论可修改至.NET 3.5),源码包括一些c# 6.0+语法,如果你在VS 2015甚至更低的VS版本上编译不通过的话,请自行修改中源码不兼容的部分。

- 截图是Windows 10 秋季创作者更新 中的亚克力玻璃 效果,其他系统请自行测试,相关内容请自行搜素Fluent Design System

MIT License

Copyright © 2018

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

DMSkin

DMSkin WPF 样式 UI 框架 | WPF Borderless Window | Custom Controls & Styles | MVVM Support
C#
1,512
star
2

DMSkin-CloudMusic

网易云音乐-用WPF来做网易云音乐客户端会怎么样?
C#
302
star
3

MVVM

适合新人学习的WPF MVVM案例
C#
147
star
4

DMSkin-QQSignIN

高仿QQ登录
C#
79
star
5

DMSkin-Mzitu

WPF开发的妹子采集美图客户端,
C#
74
star
6

DMSkin-for-WPF

WPF Borderless Window | Custom Controls & Styles | MVVM Support http://www.dmskin.com
C#
72
star
7

DMC

cctv?
Dart
53
star
8

DMSkin-Miniblink

WPF 里面 调用 Miniblink 浏览器内核
C#
38
star
9

DMSkin-Soft-Hide

隐藏软件&游戏的界面&任务栏图标&支持热键
C#
22
star
10

WindowChrome-Demo

基于WPF WindowChrome .NET Framework 4.5 +
C#
15
star
11

Intro.Wpf

个人开发WPF项目资源分享
15
star
12

DMSkin-BT

BT社区 WPF客户端
C#
8
star
13

guyhub

丐帮 (男人 - 社区)
Dart
7
star
14

almaren

Flutter 聊天界面 Chat UI almaren im
Dart
5
star
15

BottomNavigationBar

Gaussian Blur BottomNavigationBar
Dart
4
star
16

AnimatedSceneLogin

flutter use dynamic background for login interface
C++
4
star
17

PlayView

flutter play view 播放音乐的界面
Dart
3
star
18

FlutterThemeAnimation

flutter theme animation 动态背景动画
C++
2
star
19

NavigatorToolkit

NavigatorToolkit
C#
2
star
20

FlutterTransparentStatusBar

透明任务栏,沉浸式任务栏
Dart
1
star
21

Moive

flutter ui demo
Dart
1
star
22

flutter_close_window

use flutter to close local network windows
C++
1
star
23

flutter_windows_application

flutter_windows_application
Dart
1
star
24

design_life

flutter app
Dart
1
star