Skip to content

shtabesh02/MyMusicPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Click here to listen to the Musics: My Musics

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

A list of methods you can use with audio

const audio = document.querySelector("audio");

audio.play(); // Starts playing the audio.

audio.pause(); // Pauses the audio.

audio.canPlayType("audio/mpeg"); // Returns a Boolean value indicating whether the browser can play MP3 audio.

audio.load(); // Loads the audio file.

audio.controls = true; // Displays the audio controls.

audio.loop = true; // Loops the audio.

audio.muted = true; // Mutes the audio.

audio.volume = 0.5; // Sets the audio volume to 50%.

audio.currentTime = 10; // Sets the current playback position to 10 seconds.

audio.duration; // Gets the duration of the audio file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published