SShortSingh.
Back to feed

Building a Music Player App in JavaScript: Key Skills and Code

0
·5 views

A DEV Community tutorial walks through creating a simple music player with play, pause, next, and previous controls. The app uses an HTML audio element, a song list, and a progress bar that both updates during playback and lets users scrub. The guide explains a modulo technique so track navigation wraps around, and notes that browsers block autoplay until the user interacts with the page. It closes with suggested extensions such as volume control, shuffle, a highlighted playlist, and saving the last track in localStorage.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

OpenAI Publishes Essay Arguing Humans Must Keep Control Over the Future

OpenAI has published an essay titled 'People must remain in control of the future' on its website. The piece addresses the importance of human oversight as advanced AI systems grow more capable. The post drew modest attention on Hacker News, where it received 8 points and one comment. The available source material provides only the link, title, and engagement metrics, so the specific arguments and proposals in the essay are not detailed here.

0
ProgrammingDEV Community ·

Benchmark Shows Local MoE Decoding Hits 101 Tokens/s on NVIDIA GB10

A benchmark of the Inkling 2 Mini model on an NVIDIA GB10 unified memory system found that local Mixture-of-Experts inference is now limited more by routed expert matrix computation than by raw memory bandwidth. Reaching 101 tokens per second for a single stream came from combining speculative decoding with CUDA graph replay in vLLM, which avoids CPU launch delays. The approach has drawbacks, since speculative decoding slows throughput when draft tokens are often rejected, as happens with unpredictable prompts. Fixed CUDA graph shapes also limit flexibility when many concurrent requests arrive at once. Engineers building local serving setups must therefore carefully balance KV-cache allocation and kernel behavior, particularly when running several models on shared memory.

0
ProgrammingDEV Community ·

Why native exports fall short for Procore and Autodesk Forma project archives

Construction IT and data teams often need complete off-platform archives of Procore and Autodesk Forma projects, for example to meet long statute-of-repose retention periods or to consolidate between platforms. The article argues that native UI exports fail at scale because of Windows path-length and illegal-character limits, loss of relational context in RFIs and submittals, and missing financial and timecard records. It recommends paginating data through the official Procore REST API and Autodesk Platform Services, normalizing file paths with a manifest index, and generating offline HTML and CSV indexes per project. The piece promotes storing verified archives on owned storage such as SharePoint, Azure Blob, S3, or a NAS, and it discloses that the author runs a paid migration and archival service.

0
ProgrammingDEV Community ·

Flisk Translate: How a Sentence Moves from Input Box to Translation

Flisk Translate, at translate.flisk.si, converts text into 46 languages and automatically detects the source language, requiring no account. Users paste up to 2,000 characters, choose a target language, and submit, with Ctrl or Cmd plus Enter as a shortcut. The site also offers a phrasebook of English everyday phrases that can be translated on click, and a browser search shortcut lets users translate from the address bar. A public JSON API requires no key or cookies and returns the detected source language along with the translation. According to the site's description, text goes to Cloudflare's Workers AI for translation, results are cached for 24 hours, and no other data is stored, though text passed through the address bar remains in browser history.