Music Player that was made with JavaScript using Electron and jQuery.
This was a personal project that I created to get familiar with using JavaScript frameworks such as electron and jQuery. I created a program that is customizable and able to play any songs the user wants to include via adding the files to one of the project's folders. It's an interactive experience for when a user wants to play some music or watch a video in their own personal setting.
To add your own songs to the playlist, simply change the list of videos in the variable "songs." Add the path to the song you want to add and make sure to add a picture as well to the "posters" variable.
// list of songs you want to play
var songs =
["Music/spyro.mp3",
"Music/hip.mp3",
"Music/stop.mp3"];
// assigned pictures according to order of song list
var posters =
["Images/spyro.png",
"Images/Button.png",
"Images/motivateicon.png"];
Example:
You can change: - mousepad (image file) - mug (image file) - figurines (image file) - board (image file) - keyboard (image file) - wall (color using hex) - desk (color using hex) - shelfInner (color using hex) - deskFront (color using hex)
function changeToDragonTheme() {
mousepad.src = "Images/mousepad.png";
mug.src = "Images/spyro_mug.gif";
figurines.src = "Images/spyro.png";
board.src = "Images/board.png";
keyboard.src = "Images/keyboard.png";
wall.style.backgroundColor = "#dab3ff";
desk.style.backgroundColor = "#994d00";
shelfInner.style.backgroundColor = "#804000";
deskFront.style.backgroundColor = "#804000";
}
To add your own videos to the playlist, simply change the list of videos in the variable "videos." Add the path to the video you want to add.
// list of videos being played
var videos =
['Videos/firstVideo.mp4',
'Videos/secondVideo.mp4',
'Videos/thirdVideo.mp4'];
Example:
Libraries/Frameworks Used:
- JQuery
- electron
- node.js
https://nodejs.org/en/download/
npm install electron -g
npm install jquery
-
Artwork and program - Jamie Coulombe (me)
-
Progress bar for music player - https://github.com/DaftCreation/Custom-Audio-Player/blob/master/Music%20Player.html