├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── runConfigurations.xml └── gradle.xml ├── demo ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── layout │ │ │ │ ├── fragment_basic.xml │ │ │ │ ├── player_layout.xml │ │ │ │ ├── fragment_chooser.xml │ │ │ │ ├── fragment_exoplayerview.xml │ │ │ │ └── activity_main.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── menu │ │ │ │ └── menu_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── io │ │ │ └── gresse │ │ │ └── hugo │ │ │ └── simpleexoplayerdemo │ │ │ ├── ExoPlayerViewFragment.java │ │ │ ├── ChooserFragment.java │ │ │ ├── BasicFragment.java │ │ │ └── MainActivity.java │ ├── test │ │ └── java │ │ │ └── io │ │ │ └── gresse │ │ │ └── hugo │ │ │ └── simpleexoplayer │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── io │ │ └── gresse │ │ └── hugo │ │ └── simpleexoplayerdemo │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── library ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ └── values │ │ │ │ ├── strings.xml │ │ │ │ ├── ids.xml │ │ │ │ └── attr_exoplayerview.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── io │ │ │ └── gresse │ │ │ └── hugo │ │ │ └── simpleexoplayer │ │ │ ├── view │ │ │ ├── VideoSurfaceInterface.java │ │ │ ├── ExoplayerView.java │ │ │ └── AspectRatioTextureView.java │ │ │ ├── player │ │ │ ├── SimpleExoPlayerListener.java │ │ │ ├── base │ │ │ │ ├── ExtractorRendererBuilder.java │ │ │ │ ├── EventLogger.java │ │ │ │ └── DemoPlayer.java │ │ │ ├── VideoPlayer.java │ │ │ └── SimpleExoPlayer.java │ │ │ ├── MediaFile.java │ │ │ └── util │ │ │ └── Utils.java │ ├── test │ │ └── java │ │ │ └── io │ │ │ └── gresse │ │ │ └── hugo │ │ │ └── simpleexoplayer │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── io │ │ └── gresse │ │ └── hugo │ │ └── simpleexoplayer │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── makefile ├── gradle.properties ├── README.md ├── gradlew.bat ├── gradlew └── LICENSE /.idea/.name: -------------------------------------------------------------------------------- 1 | SimpleExoplayer -------------------------------------------------------------------------------- /demo/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /library/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':demo', ':library' 2 | -------------------------------------------------------------------------------- /library/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /library/src/main/res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HugoGresse/SimpleExoPlayer/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HugoGresse/SimpleExoPlayer/HEAD/demo/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HugoGresse/SimpleExoPlayer/HEAD/demo/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HugoGresse/SimpleExoPlayer/HEAD/demo/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HugoGresse/SimpleExoPlayer/HEAD/demo/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HugoGresse/SimpleExoPlayer/HEAD/demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /library/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /demo/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /demo/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SimpleExoPlayerDemo 3 | Settings 4 | http://hugo.gresse.io/teads/norway.mp4 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Apr 11 15:46:11 CEST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 7 | -------------------------------------------------------------------------------- /demo/src/main/res/layout/fragment_basic.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /demo/src/main/res/layout/player_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /demo/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 180dp 6 | 16dp 7 | 8 | -------------------------------------------------------------------------------- /demo/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | -------------------------------------------------------------------------------- /demo/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | captures/*.alloc 7 | .idea/modules.xml 8 | *.iml 9 | .idea/codeStyleSettings.xml 10 | .idea/misc.xml 11 | .idea/compiler.xml 12 | .idea/inspectionProfiles/Project_Default.xml 13 | .idea/vcs.xml 14 | .idea/inspectionProfiles/profiles_settings.xml 15 | 16 | .DS_Store 17 | /build 18 | /captures 19 | 20 | signing.properties -------------------------------------------------------------------------------- /library/src/main/res/values/attr_exoplayerview.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /demo/src/test/java/io/gresse/hugo/simpleexoplayer/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package io.gresse.hugo.simpleexoplayerdemo; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /library/src/test/java/io/gresse/hugo/simpleexoplayer/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package io.gresse.hugo.simpleexoplayer; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /demo/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /makefile: -------------------------------------------------------------------------------- 1 | GRADLE=./gradlew 2 | PROJECT_SOURCE_NAME=library 3 | 4 | all: clean build upload 5 | 6 | .PHONY: build 7 | build: 8 | @echo 'Building ...' 9 | 10 | $(GRADLE) $(PROJECT_SOURCE_NAME):incrementVersionCode 11 | $(GRADLE) $(PROJECT_SOURCE_NAME):incrementVersionName 12 | 13 | upload: 14 | @echo 'bintrayUpload ...' 15 | $(GRADLE) $(PROJECT_SOURCE_NAME):bintrayUpload 16 | 17 | localbuild: 18 | 19 | @$(MAKE) build 20 | 21 | clean: 22 | $(GRADLE) clean 23 | -------------------------------------------------------------------------------- /library/src/androidTest/java/io/gresse/hugo/simpleexoplayer/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package io.gresse.hugo.simpleexoplayer; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /demo/src/androidTest/java/io/gresse/hugo/simpleexoplayerdemo/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package io.gresse.hugo.simpleexoplayerdemo; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /library/src/main/java/io/gresse/hugo/simpleexoplayer/view/VideoSurfaceInterface.java: -------------------------------------------------------------------------------- 1 | package io.gresse.hugo.simpleexoplayer.view; 2 | 3 | /** 4 | * A global interface that all view using surface should use 5 | * 6 | * Created by Hugo Gresse on 14/08/15. 7 | */ 8 | public interface VideoSurfaceInterface { 9 | 10 | /** 11 | * Set the aspect ratio that this {@link tv.teads.sdk.adContent.ui.player.TeadsTextureView} should satisfy. 12 | * 13 | * @param widthHeightRatio The width to height ratio. 14 | */ 15 | void setVideoWidthHeightRatio(float widthHeightRatio); 16 | } 17 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /demo/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/hugogresse/Documents/Dev/lib/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /library/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/hugogresse/Documents/Dev/lib/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /demo/src/main/res/layout/fragment_chooser.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 |