{"id":3541,"url":"https://github.com/google/ExoPlayer","last_synced_at":"2025-08-03T23:34:05.508Z","repository":{"id":17877209,"uuid":"20818126","full_name":"google/ExoPlayer","owner":"google","description":"This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media","archived":false,"fork":false,"pushed_at":"2024-07-25T14:56:05.000Z","size":484242,"stargazers_count":21662,"open_issues_count":675,"forks_count":6004,"subscribers_count":840,"default_branch":"release-v2","last_synced_at":"2024-07-27T20:29:21.886Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developer.android.com/media/media3/exoplayer","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/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"docs/supported-devices.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-06-13T21:19:18.000Z","updated_at":"2024-08-15T17:49:24.465Z","dependencies_parsed_at":"2024-01-22T11:59:26.063Z","dependency_job_id":"0ea8e363-3047-4f8c-a27f-e7e4862b3db9","html_url":"https://github.com/google/ExoPlayer","commit_stats":{"total_commits":18112,"total_committers":334,"mean_commits":54.22754491017964,"dds":0.724768109540636,"last_synced_commit":"5df25aefd9234f91716960430a4540baa8971315"},"previous_names":[],"tags_count":207,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2FExoPlayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2FExoPlayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2FExoPlayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2FExoPlayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/ExoPlayer/tar.gz/refs/heads/release-v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228576888,"owners_count":17939645,"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":["android","exoplayer","java","mediaplayer"],"created_at":"2024-01-05T20:16:44.413Z","updated_at":"2024-12-07T07:30:39.752Z","avatar_url":"https://github.com/google.png","language":"Java","readme":"# ExoPlayer \u003cimg src=\"https://img.shields.io/github/v/release/google/ExoPlayer.svg?label=latest\"/\u003e\n\nExoPlayer is an application level media player for Android. The latest version\nis published as part of [AndroidX Media][] under a new package name and all\nfuture development will be in that project.\n\n[AndroidX Media]: https://github.com/androidx/media\n\n## Deprecation\n\n**This project is deprecated.** All users should migrate to AndroidX Media3.\nPlease refer to our [migration guide and script][] to move your codebase to the\nMedia3 package names.\n\n*   We plan to continue pushing commits to the `dev-v2` branch in this\n    repository until March 2024.\n*   `exoplayer:2.19.1` was the last artifact released from this project, we\n    don't plan to release any more.\n\n[migration guide and script]: https://developer.android.com/guide/topics/media/media3/getting-started/migration-guide\n\n## Documentation\n\n*   The [developer guide][] provides a wealth of information.\n*   The [class reference][] documents ExoPlayer classes. Note that the classes\n    are documented with their Media3 package names.\n*   The [release notes][] document the major changes in each release.\n*   Follow our [developer blog][] to keep up to date with the latest ExoPlayer\n    developments!\n\n[developer guide]: https://developer.android.com/guide/topics/media/exoplayer\n[class reference]: https://developer.android.com/reference/androidx/media3/common/package-summary\n[release notes]: https://github.com/google/ExoPlayer/blob/release-v2/RELEASENOTES.md\n[developer blog]: https://medium.com/google-exoplayer\n\n## Using ExoPlayer\n\nPlease refer to\n[AndroidX Media](https://github.com/androidx/media/blob/release/README.md) for\nthe usage instructions of the latest release.\n\nExoPlayer modules can be obtained from [the Google Maven repository][]. It's\nalso possible to clone the repository and depend on the modules locally.\n\n[the Google Maven repository]: https://developer.android.com/studio/build/dependencies#google-maven\n\n### From the Google Maven repository\n\n#### 1. Add ExoPlayer module dependencies\n\nThe easiest way to get started using ExoPlayer is to add it as a gradle\ndependency in the `build.gradle` file of your app module. The following will add\na dependency to the full library:\n\n```gradle\nimplementation 'com.google.android.exoplayer:exoplayer:2.X.X'\n```\n\nwhere `2.X.X` is your preferred version.\n\nAs an alternative to the full library, you can depend on only the library\nmodules that you actually need. For example the following will add dependencies\non the Core, DASH and UI library modules, as might be required for an app that\nonly plays DASH content:\n\n```gradle\nimplementation 'com.google.android.exoplayer:exoplayer-core:2.X.X'\nimplementation 'com.google.android.exoplayer:exoplayer-dash:2.X.X'\nimplementation 'com.google.android.exoplayer:exoplayer-ui:2.X.X'\n```\n\nWhen depending on individual modules they must all be the same version.\n\nThe available library modules are listed below. Adding a dependency to the full\nExoPlayer library is equivalent to adding dependencies on all of the library\nmodules individually.\n\n* `exoplayer-core`: Core functionality (required).\n* `exoplayer-dash`: Support for DASH content.\n* `exoplayer-hls`: Support for HLS content.\n* `exoplayer-rtsp`: Support for RTSP content.\n* `exoplayer-smoothstreaming`: Support for SmoothStreaming content.\n* `exoplayer-transformer`: Media transformation functionality.\n* `exoplayer-ui`: UI components and resources for use with ExoPlayer.\n\nIn addition to library modules, ExoPlayer has extension modules that depend on\nexternal libraries to provide additional functionality. Some extensions are\navailable from the Maven repository, whereas others must be built manually.\nBrowse the [extensions directory][] and their individual READMEs for details.\n\nMore information on the library and extension modules that are available can be\nfound on the [Google Maven ExoPlayer page][].\n\n[extensions directory]: https://github.com/google/ExoPlayer/tree/release-v2/extensions/\n[Google Maven ExoPlayer page]: https://maven.google.com/web/index.html#com.google.android.exoplayer\n\n#### 2. Turn on Java 8 support\n\nIf not enabled already, you also need to turn on Java 8 support in all\n`build.gradle` files depending on ExoPlayer, by adding the following to the\n`android` section:\n\n```gradle\ncompileOptions {\n  targetCompatibility JavaVersion.VERSION_1_8\n}\n```\n\n#### 3. Enable multidex\n\nIf your Gradle `minSdkVersion` is 20 or lower, you should\n[enable multidex](https://developer.android.com/studio/build/multidex) in order\nto prevent build errors.\n\n### Locally\n\nCloning the repository and depending on the modules locally is required when\nusing some ExoPlayer extension modules. It's also a suitable approach if you\nwant to make local changes to ExoPlayer, or if you want to use a development\nbranch.\n\nFirst, clone the repository into a local directory:\n\n```sh\ngit clone https://github.com/google/ExoPlayer.git\ncd ExoPlayer\n```\n\nNext, add the following to your project's `settings.gradle` file, replacing\n`path/to/exoplayer` with the path to your local copy:\n\n```gradle\ngradle.ext.exoplayerModulePrefix = 'exoplayer-'\napply from: file(\"path/to/exoplayer/core_settings.gradle\")\n```\n\nYou should now see the ExoPlayer modules appear as part of your project. You can\ndepend on them as you would on any other local module, for example:\n\n```gradle\nimplementation project(':exoplayer-library-core')\nimplementation project(':exoplayer-library-dash')\nimplementation project(':exoplayer-library-ui')\n```\n","funding_links":[],"categories":["Video Players \u0026 Playback Libraries","Video","Media","Android ##","Players","[Programming]","Java","CN","HarmonyOS","Libraries","GPU computing","Recently Updated","Android 应用",":shamrock:  **Categories**","Android Kotlin Project Showcase"],"sub_categories":["Mobile Players","[Programming] - [Android]","[Google](https://github.com/google)","Windows Manager","GUI","[Jan 23, 2024](/content/2024/01/23/README.md)","网络服务_其他",":books: Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2FExoPlayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2FExoPlayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2FExoPlayer/lists"}