Commit 2112bc24 by ojw28

Merge pull request #735 from b95505017/okhttp_http_data_source

Add an extension that provide DataSource using OkHttp
parents 62ce0ff0 0df29a64
# ExoPlayer OkHttp Extension #
## Description ##
The OkHttp Extension is a [HTTP Data Source][] implementation using Square's [OkHttp][].
[HTTP Data Source]: http://google.github.io/ExoPlayer/doc/reference/com/google/android/exoplayer/upstream/HttpDataSource.html
[OkHttp]: http://square.github.io/okhttp/
\ No newline at end of file
apply plugin: 'com.android.library'
android{
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 9
targetSdkVersion 22
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
lintOptions {
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile project(':library')
compile('com.squareup.okhttp:okhttp:2.4.0') {
exclude group: 'org.json'
}
compile 'com.android.support:support-annotations:23.0.0'
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.exoplayer.ext.datasource.okhttp">
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="22"/>
</manifest>
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-22
android.library=true
android.library.reference.1=../../../../library/src/main
...@@ -17,7 +17,9 @@ include ':playbacktests' ...@@ -17,7 +17,9 @@ include ':playbacktests'
include ':opus-extension' include ':opus-extension'
include ':vp9-extension' include ':vp9-extension'
include ':webm-sw-demo' include ':webm-sw-demo'
include ':okhttp-extension'
project(':opus-extension').projectDir = new File(settingsDir, 'extensions/opus') project(':opus-extension').projectDir = new File(settingsDir, 'extensions/opus')
project(':vp9-extension').projectDir = new File(settingsDir, 'extensions/vp9') project(':vp9-extension').projectDir = new File(settingsDir, 'extensions/vp9')
project(':webm-sw-demo').projectDir = new File(settingsDir, 'demo_misc/webm_sw_decoder') project(':webm-sw-demo').projectDir = new File(settingsDir, 'demo_misc/webm_sw_decoder')
project(':okhttp-extension').projectDir = new File(settingsDir, 'extensions/okhttp')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment