Skip to content

Commit

Permalink
Merge pull request #2 from brianwernick/playlist_support
Browse files Browse the repository at this point in the history
Playlist support
  • Loading branch information
brianwernick committed May 14, 2015
2 parents daa1237 + 8081f9e commit 9434d74
Show file tree
Hide file tree
Showing 36 changed files with 3,572 additions and 395 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ Or included in your gradle dependencies
compile 'com.devbrackets.android:exomedia:1.0.1'
```

Additionally, if you use ProGuard you will need to add the following rule
```proguard
# ExoMedia
-keep class com.devbrackets.android.exomedia.** {*;}
```

Example
-------
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter();
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.2'
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.novoda:bintray-release:0.2.7'
}
}
Expand Down
3 changes: 2 additions & 1 deletion demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ apply plugin: 'com.android.application'

dependencies {
compile project(':library')
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.squareup.picasso:picasso:2.5.2'
}

android {
Expand Down
33 changes: 20 additions & 13 deletions demo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,39 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.devbrackets.android.exomediademo" >
<manifest package="com.devbrackets.android.exomediademo"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
android:theme="@style/AppTheme"
android:name=".App">
<activity
android:name=".StartupActivity"
android:label="@string/app_name" >
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name=".VideoPlayerActivity"
android:label="@string/title_activity_video_player" >
android:label="@string/title_activity_video_player">
</activity>
<activity
android:name=".AudioPlayerActivity"
android:label="@string/title_activity_audio_player" >
android:name=".FullScreenVideoPlayerActivity"
android:label="@string/title_activity_video_player">
</activity>
<activity
android:name=".FullScreenVideoPlayerActivity"
android:label="@string/title_activity_audio_player" >
android:name=".AudioSelectionActivity"
android:label="@string/title_activity_audio_player">
</activity>
<activity
android:name=".AudioPlayerActivity"
android:label="@string/title_activity_audio_player">
</activity>


<service
android:name=".service.AudioService"
android:enabled="true"
android:exported="false" >
android:exported="false">
</service>
</application>

Expand Down
35 changes: 35 additions & 0 deletions demo/src/main/java/com/devbrackets/android/exomediademo/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package com.devbrackets.android.exomediademo;

import android.app.Application;

import com.devbrackets.android.exomediademo.manager.PlaylistManager;

public class App extends Application {

private static App application;
private static PlaylistManager playlistManager;

@Override
public void onCreate() {
super.onCreate();

application = this;
playlistManager = new PlaylistManager();
}

@Override
public void onTerminate() {
super.onTerminate();

application = null;
playlistManager = null;
}

public static PlaylistManager getPlaylistManager() {
return playlistManager;
}

public static App getApplication() {
return application;
}
}
Loading

0 comments on commit 9434d74

Please sign in to comment.