{"id":18789246,"url":"https://github.com/dsiner/commenplayer","last_synced_at":"2025-08-28T12:12:22.937Z","repository":{"id":201716620,"uuid":"92717606","full_name":"Dsiner/CommenPlayer","owner":"Dsiner","description":"CommenPlayer    ——Video player, Support ijkPlayer, Vlc, MediaPlayer, ExoPlayer; 视频播放器，支持ijkPlayer，Vlc，MediaPlayer，ExoPlayer","archived":false,"fork":false,"pushed_at":"2021-01-11T04:17:07.000Z","size":564,"stargazers_count":86,"open_issues_count":8,"forks_count":29,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-21T04:41:06.693Z","etag":null,"topics":["android","exoplayer","ijkplayer","mediaplayer","player","vlc"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dsiner.png","metadata":{"files":{"readme":"README-zh.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-05-29T07:42:32.000Z","updated_at":"2025-02-24T21:17:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb294b97-2a20-45d5-889e-f934b267709a","html_url":"https://github.com/Dsiner/CommenPlayer","commit_stats":null,"previous_names":["dsiner/commenplayer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dsiner/CommenPlayer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FCommenPlayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FCommenPlayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FCommenPlayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FCommenPlayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dsiner","download_url":"https://codeload.github.com/Dsiner/CommenPlayer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FCommenPlayer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272497272,"owners_count":24944657,"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","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","exoplayer","ijkplayer","mediaplayer","player","vlc"],"created_at":"2024-11-07T21:07:02.449Z","updated_at":"2025-08-28T12:12:22.884Z","avatar_url":"https://github.com/Dsiner.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CommenPlayer for Android\n\n[![License](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![API](https://img.shields.io/badge/API-9%2B-green.svg?style=flat)](https://android-arsenal.com/api?level=9)\n\n\u003e 一个适用于 Android 平台的视频播放器，基于ijkplayer、Android MediaPlayer、ExoPlayer / vlc\n\n## Branch\n- [master](https://github.com/Dsiner/CommenPlayer)  - develop分支，依赖形式，支持格式较少、包体积较小，基于 `ijkplayer` ，支持 ijkplayer、Android MediaPlayer、ExoPlayer\n- [ijk-lite](https://github.com/Dsiner/CommenPlayer/tree/ijk-lite-v0.8.8)  - release分支，.so file，支持格式较少、包体积较小，基于 `ijkplayer` ，支持 ijkplayer、Android MediaPlayer、ExoPlayer\n- [ijk-default](https://github.com/Dsiner/CommenPlayer/tree/ijk-default-v0.8.8)  - release分支，.so file，支持格式全、包体积较大，基于 `ijkplayer` ，支持 ijkplayer、Android MediaPlayer、ExoPlayer\n- [vlc](https://github.com/Dsiner/CommenPlayer/tree/vlc)  - beta分支，基于 `vlc`\n\n## Demo\n\u003cp\u003e\n   \u003cimg src=\"https://github.com/Dsiner/Resouce/blob/master/lib/CommenPlayer/commenplayer.gif\" width=\"320\" alt=\"Screenshot\"/\u003e\n\u003c/p\u003e\n\n## Features\n- [x] 支持本地和网络视频播放\n- [x] 支持 M3U8、RTMP、RTSP、UDP 协议的直播流媒体播放\n- [x] 支持常见的音视频文件播放（MP4、mp3、flv等）\n- [x] 支持播放控制，进度显示\n- [x] 支持手势滑动调节播放进度、亮度、声音\n- [x] 支持画面尺寸切换（16：9，4：3，自适应，撑满等）\n- [x] 支持横竖屏切换、全屏模式、列表播放、列表播放/全屏模式切换\n- [x] 支持全屏沉浸式模式\n\n## Usage\n```xml\n    \u003ccom.d.lib.commenplayer.CommenPlayer\n        android:id=\"@+id/player\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"180dp\" /\u003e\n```\n\n#### Operation\n```java\n        player.setLive(false);\n        player.setOnNetListener(new OnNetListener() {\n            @Override\n            public void onIgnoreMobileNet() {\n                ignoreNet = true;\n            }\n        }).setOnPlayerListener(new IPlayerListener() {\n            @Override\n            public void onLoading() {\n                player.getControl().setState(ControlLayout.STATE_LOADING);\n            }\n\n            @Override\n            public void onCompletion(IMediaPlayer mp) {\n                player.getControl().setState(ControlLayout.STATE_COMPLETION);\n            }\n\n            @Override\n            public void onPrepared(IMediaPlayer mp) {\n                if (!ignoreNet \u0026\u0026 NetConstans.NET_STATUS == NetConstans.CONNECTED_MOBILE) {\n                    player.pause();\n                    player.getControl().setState(ControlLayout.STATE_MOBILE_NET);\n                } else {\n                    player.getControl().setState(ControlLayout.STATE_PREPARED);\n                }\n            }\n\n            @Override\n            public boolean onError(IMediaPlayer mp, int what, int extra) {\n                player.getControl().setState(ControlLayout.STATE_ERROR);\n                return false;\n            }\n\n            @Override\n            public boolean onInfo(IMediaPlayer mp, int what, int extra) {\n                return false;\n            }\n\n            @Override\n            public void onVideoSizeChanged(IMediaPlayer mp, int width, int height, int sarNum, int sarDen) {\n\n            }\n        });\n        player.play(url);\n```\n\n#### Activity Lifecycle\n```java\n    Override onResume()、onPause()、onConfigurationChanged()、onBackPressed()、onDestroy()\n```\n\nMore usage see [Demo](app/src/main/java/com/d/commenplayer/MainActivity.java)\n\n## Latest Changes\n- [Changelog.md](CHANGELOG.md)\n\n## Thanks\n- [ijkplayer](https://github.com/Bilibili/ijkplayer)  - Video player based on ffplay\n- [vlc-android-sdk](https://github.com/mrmaffen/vlc-android-sdk)  - Unofficial VLC Android SDK pushed to JCenter. Supported ABIs are armeabi-v7a, arm64-v8a, x86 and x86_64.\n- [JiaoZiVideoPlayer](https://github.com/lipangit/JiaoZiVideoPlayer)\n- [NiceVieoPlayer](https://github.com/xiaoyanger0825/NiceVieoPlayer)\n\n## Licence\n\n```txt\nCopyright 2017 D\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsiner%2Fcommenplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsiner%2Fcommenplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsiner%2Fcommenplayer/lists"}