ccns / ccns-radio Goto Github PK
View Code? Open in Web Editor NEWA nodejs based playing system that accept song request by youtube url and play on the server side web ui. Support discord chatbot control.
A nodejs based playing system that accept song request by youtube url and play on the server side web ui. Support discord chatbot control.
function redeclareArgument(body) {
var body = JSON.parse(body) // 重覆宣告了
body = JSON.parse(body) // 可以直接覆寫是
const json = JSON.parse(body) // 取一個新名字更好
}
記得 block 裡不能宣告函數,只能用函數表達式。
和不能在 block 裡用 var 宣告變數差不多。
雖然沒什麼關係,但我會盡量避免。
if (!err) {
// 這樣不太 ok
function recurElseListInside() {
}
recurElseListInside([])
}
// 宣告在外面比較好
function recurElseListOutside() {
}
snake_case
?javascript 統一用 camelCase 好嗎?
在 playList
裡怎麼一堆 song_list
song_data
?
let volume up +3,
volume down -5.
so +1 = +3 +3 -5,
+2 = +1 +1,
can allow any volume value.
Add function to save preferences and song list.
Preference like kanban-musume's url and size and position, default volume, or some frontend costume setting.
Feel free to suggest any settings you want.
README PLEASE
Client version of the player is broken in mobile browser.
也就是該播的下首歌不播
直接跳到更後面的歌播
(´・д・`)ハ(・д・`*)
支援撥放列表資料庫
目前計畫支援 firebase 及本地端 json 資料庫
Directly open a search window on page for adding new songs
(*゚∀゚*)
It seems that there is no need to use websocket to implement song addition. Maybe have some discussion here.
應該不是人為的,大概
讓 web server 聽 port 80 ,
最好寫成設定檔。
For diagnosis and debugging
submitting url again and again is very tired
Currently some shit keep printing out on the frontend console. Clean it up ASAP.
To check the success of command execution.
It's better to separate playlist and controller. Currently, it's playlist that handle the player control command, but how the player is controlled actually isn't related to the playlist.
Controller will receive commands for either modifying playlist or controlling the frontend player, modify the playlist, and send command to dispatcher. Modules will only interact with controller.
There are lots of global variable reference. It's better to avoid this kind of things.
加清單的網址時,只要一首和已知的重覆,
就會終止,後面的歌都不會被加入。
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.