GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - brianwernick/ExoMedia: An Android ExoPlayer wrapper to simplify Audio and Video implementations

BranchesTags
Open more actions menu

Latest commit

 

History

701 Commits
701 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
buildSrc
buildSrc
 
 
demo
demo
 
 
gradle
gradle
 
 
library
library
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
demo_icon.svg
demo_icon.svg
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

Maven Central

ExoMedia

ExoMedia is an audio/video playback library for Android built on top of the ExoPlayer with straightforward APIs and integrations. This library focuses on quick setup, handling common audio and video playback needs while also providing extensibility for more custom use cases.

ExoMedia vs ExoPlayer

The ExoPlayer is an advanced media player for Android that is highly customizable, however that comes at the cost of a more complex setup and configuration process. This customizability is great when it's needed however can be daunting when you need to play a simple audio or video file.

ExoMedia is a more high-level abstraction of media playback that abstracts some of the customizability provided by the ExoPlayer into simple functions and callbacks, keeping the required configuration to a minimum.

Use

The latest version can be found at Maven Central.

repositories {
  mavenCentral()
}

dependencies {
  // See MavenCentral or the tag at the beginning of the Readme for the latest version
  implementation 'com.devbrackets.android:exomedia:x.x.x'
}

Quick Start

The ExoMedia VideoView can be added in your layout files like any other Android view.

<RelativeLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent">

	<com.devbrackets.android.exomedia.ui.widget.VideoView
		android:id="@+id/video_view"
		android:layout_width="match_parent"
		android:layout_height="match_parent" />
</RelativeLayout>

While in your Activity or Fragment you treat it like a standard Android VideoView

private lateinit var videoView: VideoView

private fun setupVideoView() {
  // Make sure to use the correct VideoView import
  videoView = findViewById(R.id.video_view) as VideoView
  videoView.setOnPreparedListener(this)

  // For now we just picked an arbitrary item to play
  videoView.setMedia(Uri.parse("https://www.devbrackets.com/media/samples/video/big_buck_bunny.mp4"))
}

@Override
fun onPrepared() {
  //Starts the video playback as soon as it is ready
  videoView.start()
}

License

Copyright 2015-2026 ExoMedia Contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Attribution

  • Uses Kotlin licensed under Apache 2.0
  • Uses AndroidX Media3 licensed under Apache 2.0
  • Uses ConstraintLayout licensed under Apache 2.0
  • Uses AndroidX AppCompat licensed under Apache 2.0
  • Uses Material Design icons licensed under Apache 2.0

About

An Android ExoPlayer wrapper to simplify Audio and Video implementations

Topics

androidandroid-mediaplayeraudioplayerexoplayermediaplayervideoview

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity

Stars

2.2k stars

Watchers

77 watching

Forks

378 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.