Coder Social home page Coder Social logo

itchyny / chromeplayer Goto Github PK

View Code? Open in Web Editor NEW
11.0 5.0 6.0 1.14 MB

A music player for local files, working on Google Chrome

Home Page: https://chrome.google.com/webstore/detail/chkhjlbdflppmaddpjmjecgdagdljimc

License: MIT License

JavaScript 100.00%

chromeplayer's Introduction

This is the source code of Local Player

Local Player is an App for Google Chrome,

available at https://chrome.google.com/webstore/detail/chkhjlbdflppmaddpjmjecgdagdljimc

Note

This repository has been closed.

This software will not be developed anymore.

New repository is https://github.com/itchyny/LocalPlayer.

Usage

  • A media player on your browser for LOCAL FILES.
  • Drag mp3/ogg files from file browser into the window.
  • Or, you can also add music files from a file dialog, which appears when you click the '+' button.
  • You'll find the file name show up.
  • And player above will automatically start to play the file.
  • If you double-click the file name in the file list, it'll start to play that file.

Motivation

Yet you can open and play (and pause, and so on) a mp3 file with Google Chrome, but only one file. Local Player allows you to listen to multiple files without any annoying operation.

Key bindings

Press ? to see the keyboard shortcuts. (For shortcuts, I didn't write some to the list, which appears when ? pressed. For example, you can also use Alt+Space to pause. This was added because in Mac, Ctrl+Space is Spotlight. And as for Mac users, Command key can be also used where it is written as: .)

Supported file types

music: mp3, ogg, aac, m4a video: mp4

Not implemented features, unfixed bugs

Save the file list Support for other types like wav or flac

Source code

I pushed this source to github. https://github.com/itchyny/ChromePlayer (Local Player used to be named Chrome Player) I allow you to fork another app from this code. This application is distributed under the MIT license.

Security

You may wonder why this App accesses "all data from your website". Actually, this App gets no data from your browsing site. This permission is needed for "Global keyboard control." It is realized by following: listening the keydown event, and if it was → or ←, the player catches that event and seek for next or previous music.

If you want see the script, open a site (www.google.com for example) and right click → inspect → Scripts, find chrome-extension://chkhjlbdflppmaddpjmjecgdagdljimc/js/shortcuts.js. "chkhjlbdflppmaddpjmjecgdagdljimc" is the id number for this App.

Contact or comment

Write a review!!!

Any impression on this app is welcome.

Enjoy!

chromeplayer's People

Contributors

itchyny avatar maks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.