Cool dog music player is open-source !, Open-source codoy player
Reprinted please explain the original source, thank you: http://blog.csdn.net/zhuhongshu/article/details/41037875
The Redrain music box (cool dog-like player) I released the test version is just two months away. Some netizens have been concerned about the Open Source issue of this small project in blog posts and QQ groups. Thank you for your support for this small project. I have been worried about copyright issues and have not implemented the open-source project. Because I am only a college student and have no job, I don't want to get into trouble. I hope you can understand it!
This article is just a description of open source! For instructions and usage of the Redrain music box release program, see Redrain cool dog music player development and release testing program.
Today, I uploaded the source code of this project. It includes all the code files required to compile the project, the layout files of the software, but not the materials required by the software. This is also to avoid copyright issues with codoy player.
If any of you have complete music library materials and are willing to provide them to me for free, I would be grateful! For details, please refer to "about the Open Source of the cool dog music player: seeking for a set of music player materials to make the cool dog open source"
The purpose of this small open source project is to help more friends who use the DuiLib or UiLib library to learn and familiarize themselves with this library. I personally like the DuiLib library and it is also the earliest open-source DirectUI interface library in China. DuiLib2.0 and DuiLib3.0 are also under development. It is said that DuiLib3.0 will be a cross-platform interface library. We hope DuiLib can develop better!
I used the UiLib library instead of the DuiLib library in this project. The UiLib library is an extended version of the DuiLib library, which adds support for some animation controls and extends some controls, however, the core code has not changed. It is exactly the same as DuiLib's usage. You can also use the UiLib library to directly compile the code written in the DuiLib library. In the project, UiLib was specially modified to adapt to the cool dog and fixed necessary bugs. Therefore, if you use the original DuiLib or UiLib library to compile this function, the final program effect is different from what I released. For bug fixes, see the earlier articles in the blog. For the DuiLib library and UiLib library I use and maintain myself, refer to the blog: DuiLib and UiLib Library Source Code maintained and used by Redrain personally.
When reading this program code, we recommend that you combine the articles in my previous series of articles "Development log of imitation codoy music player". I will explain the development steps and ideas in this article, combined with the source code, you can fully understand the project.
Because the uploaded code does not contain materials, it is very difficult to compile the program directly. So I also provided a program that has integrated materials internally. You can see the complete and real effect of the program running through it. The project was developed with vs2012.
The source code of this project also includes webkit kernel browser controls, music playback, skin replacement, drag and drop, menus, and so on. For more information about menus, see add message responses to duilib MenuDemo, optimize code and display effects. The menu functions are as follows:
1. Multi-Level menus can be displayed.
2. The custom control can be embedded, and the control can send messages to the main form. The red exclamation mark is a button control. You can create a pause button and progress bar for playing the tray menu of cool dog music.
3. The menu has a shadow effect.
4. You can customize the icons displayed in front of the menu, and control the Icon size and whether or not to display them.
5. You can decide whether to display a small arrow based on whether a sub-menu exists.
6. You can add a split line to the menu.
7. Each menu item can be selected and checked.
8. Optimize the xml description file of the menu for ease of writing. If you want to write a level-2 menu, such as writing menu Test 4 in the image and its sub-menu, you only need the following code.
9. You can use buttons on the keyboard to control menu options.
10. the height and width of each menu item are adjusted as needed.
There are still some unimplemented functions in this project, but I do not intend to continue to complete these functions:
1. animation effects gradually reduced when exiting the program
2. Menu response
3. The lyrics function (I will not do it again if some netizens have already made it)
4. Desktop lyrics embedded into the Desktop
Conclusion:
If there are any bugs in the program code or you have any questions about the code, you can find me in the QQ group or add me QQ. At the same time, the source code is only for the purpose of learning and communication, and cannot be used for commercial programs. The source code is not responsible for the losses caused to users!
Source code: Click to open the link
Redrain 2014.11.12
QQ: 491646717
E-mail: redrains@qq.com