{"id":17688739,"url":"https://github.com/boybeak/bemusic","last_synced_at":"2025-10-27T19:33:31.413Z","repository":{"id":87642729,"uuid":"77280064","full_name":"boybeak/BeMusic","owner":"boybeak","description":"A local music player","archived":false,"fork":false,"pushed_at":"2017-04-03T11:41:08.000Z","size":9384,"stargazers_count":61,"open_issues_count":3,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-07T02:28:23.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boybeak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-24T11:28:53.000Z","updated_at":"2024-12-07T09:07:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d64b2d1-c0ec-4de4-96a3-052a3b963674","html_url":"https://github.com/boybeak/BeMusic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FBeMusic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FBeMusic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FBeMusic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FBeMusic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boybeak","download_url":"https://codeload.github.com/boybeak/BeMusic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252801219,"owners_count":21806275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T11:45:19.384Z","updated_at":"2025-10-27T19:33:26.381Z","avatar_url":"https://github.com/boybeak.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BeMusic\nIt is a local music player, show you how to use MediaPlayer to make a simple MusicPlayer.\n\n[代码解析参见blog.md](https://github.com/boybeak/BeMusic/blob/master/blog.md)\n\nPlay Store地址:\n\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.nulldreams.bemusic\"\u003e\n\u003cimg src=\"https://github.com/boybeak/BeMusic/blob/master/app/en_badge_web_generic.png\" width=\"161\" height=\"62\"/\u003e\n\u003ca/\u003e\n\n[BePlayer](https://play.google.com/store/apps/details?id=com.nulldreams.bemusic)\n\n\u003cimg src=\"https://github.com/boybeak/BeMusic/blob/master/app/play_detail.png\" width=\"180\" height=\"320\"/\u003e\n\u003cimg src=\"https://github.com/boybeak/BeMusic/blob/master/app/album_list.png\" width=\"180\" height=\"320\"/\u003e\n\u003cimg src=\"https://github.com/boybeak/BeMusic/blob/master/app/play_list.png\" width=\"180\" height=\"320\"/\u003e\n\n\u003cimg src=\"https://github.com/boybeak/BeMusic/blob/master/app/play_detail_land.png\" width=\"320\" height=\"180\"/\u003e\n\u003cimg src=\"https://github.com/boybeak/BeMusic/blob/master/app/album_list_land.png\" width=\"320\" height=\"180\"/\u003e\n\u003cimg src=\"https://github.com/boybeak/BeMusic/blob/master/app/play_list_land.png\" width=\"320\" height=\"180\"/\u003e\n\n## Getting Start\n你只需要关心的就是[PlayManager](https://github.com/boybeak/BeMusic/blob/master/media/src/main/java/com/nulldreams/media/manager/PlayManager.java)这个类，这个类中，已经有了对播放状态对生命周期的维护，同时包括了对AudioFocus,ACTION_AUDIO_BECOMING_NOISY,锁屏等。具体见下图：\n\u003cimg src=\"https://github.com/boybeak/BeMusic/blob/master/app/img.jpeg\" width=\"737\" height=\"370\"/\u003e\n\n####实例化[PlayManager](https://github.com/boybeak/BeMusic/blob/master/media/src/main/java/com/nulldreams/media/manager/PlayManager.java)\n\n```\nPlayManager.getInstance (context);\n```\n####几个重要的方法\n```\npublic void dispatch(final Song song);\npublic void dispatch();\npublic void setRule (@NonNull Rule rule);\npublic void next();\npublic void previous ();\npublic void pause ();\npublic void seekTo (int position);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboybeak%2Fbemusic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboybeak%2Fbemusic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboybeak%2Fbemusic/lists"}