GithubHelp home page GithubHelp logo

haoht / android-remotecontroller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from youngbill/android-remotecontroller

0.0 1.0 0.0 339 KB

AndroidRemoteController Is a project to remotely control third-party music player

License: Apache License 2.0

Java 100.00%

android-remotecontroller's Introduction

AndroidRemoteController

readme-中文

AndroidRemoteController是一个远程控制第三方音乐播放器的项目。
在了解项目之前我们需要弄清楚2个知识点:
1、所有音乐播放App,它们都有注册耳机插拔的广播,还有就是你可以通过控制耳机按键来控制音乐播放,而耳机按键事件是可以模拟的,这就为控制第三方音乐播放器提供可能。
2、所有的音乐播放App,它们都会在通知栏有常驻的Notification来显示当前一些歌曲的信息,关于接收音乐信息的问题,这里指的是接收专辑、歌手专辑封面等等,那如何获取呢,一种方式是通过反射,但是普遍性比较差。在Android API 19中,谷歌为我们提供了RemoteController。
通过以上知识点,我们就能拿到第三方音乐播放App的各种音乐信息,并且控制第三方音乐播放。

readme-en

AndroidRemoteController Is a project to remotely control third-party music players.
Before we understand the project we need to find out two knowledge points:
1, all music player App, they have registered headphones plug the radio, there is that you can control the headphone button to control music playback, and headphone button events can be simulated, which is to control the third-party music player may.
2, all the music player App, they will have a permanent notice Notification column to display some of the current song information on the reception of music information, here refers to receiving albums, artist album covers, etc., then how to get it One way is by reflection, but less universal. In Android API 19, Google provided us RemoteController.
Through the above knowledge point, we can get a variety of music information of third-party music player App, and control the third-party music player.

preview

playing


pause


change


结束 

android-remotecontroller's People

Contributors

jay-dh avatar youngbill avatar

Watchers

 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.