Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit bca7e3e

Browse files
author
Sony Mobile Open Source Project
committed
Initial Upload.
1 parent d62b95c commit bca7e3e

181 files changed

Lines changed: 33286 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Multimedia-for-Android-Library.iml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="java-gradle" name="Java-Gradle">
5+
<configuration>
6+
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
7+
</configuration>
8+
</facet>
9+
</component>
10+
<component name="NewModuleRootManager" inherit-compiler-output="false">
11+
<output url="file://$MODULE_DIR$/build/classes/main" />
12+
<output-test url="file://$MODULE_DIR$/build/classes/test" />
13+
<exclude-output />
14+
<content url="file://$MODULE_DIR$">
15+
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
16+
</content>
17+
<orderEntry type="inheritedJdk" />
18+
<orderEntry type="sourceFolder" forTests="false" />
19+
</component>
20+
</module>
21+

NOTICE

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
=========================================================================
2+
== NOTICE file corresponding to the section 4 d of ==
3+
== the Apache License, Version 2.0, ==
4+
== in this case for the Multimedia for Android Library-specific code. ==
5+
=========================================================================
6+
7+
Multimedia for Android Library Code
8+
Copyright (C) 2014 Sony Mobile Communications Inc.
9+
10+
Original code licensed under the Apache License, Version 2.0 (the "License");
11+
you may not use this software except in compliance with the License.
12+
You may obtain a copy of the License at
13+
14+
http://www.apache.org/licenses/LICENSE-2.0
15+
16+
Unless required by applicable law or agreed to in writing, software
17+
distributed under the License is distributed on an "AS IS" BASIS,
18+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
See the License for the specific language governing permissions and
20+
limitations under the License.
21+
22+
23+
=========================================================================
24+
== NOTICE file corresponding to the section 4 d of ==
25+
== the Apache License, Version 2.0, ==
26+
== in this case for the Android-specific code. ==
27+
=========================================================================
28+
29+
Android Code
30+
Copyright 2005-2008 The Android Open Source Project
31+
32+
This product includes software developed as part of
33+
The Android Open Source Project (http://source.android.com).
34+
35+
36+
=========================================================================
37+
== NOTICE file corresponding to the section 4 d of ==
38+
== the Apache License, Version 2.0, ==
39+
== in this case for the ExoPlayer-specific code. ==
40+
=========================================================================
41+
42+
ExoPlayer Code
43+
Copyright (C) 2014 The Android Open Source Project
44+
Licensed under the Apache License, Version 2.0 (the "License");
45+
you may not use this file except in compliance with the License.
46+
You may obtain a copy of the License at
47+
48+
http://www.apache.org/licenses/LICENSE-2.0
49+
50+
Unless required by applicable law or agreed to in writing, software
51+
distributed under the License is distributed on an "AS IS" BASIS,
52+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53+
See the License for the specific language governing permissions and
54+
limitations under the License.
55+
56+
57+
=========================================================================
58+
== NOTICE file corresponding to the section 4 d of ==
59+
== the Apache License, Version 2.0, ==
60+
== in this case for the Apache Harmony distribution. ==
61+
=========================================================================
62+
63+
Apache Harmony
64+
Copyright 2006 The Apache Software Foundation
65+
66+
This product includes software developed at
67+
The Apache Software Foundation (http://www.apache.org/).
68+
69+
Portions of Harmony were originally developed by
70+
Intel Corporation and are licensed to the Apache Software
71+
Foundation under the "Software Grant and Corporate Contribution
72+
License Agreement", informally known as the "Intel Harmony CLA".
73+

build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
buildscript {
3+
repositories {
4+
jcenter()
5+
}
6+
dependencies {
7+
classpath 'com.android.tools.build:gradle:1.0.0-rc1'
8+
}
9+
}
10+
11+
allprojects {
12+
repositories {
13+
jcenter()
14+
}
15+
}

demoApplication/build.gradle

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apply plugin: 'com.android.application'
2+
3+
buildscript {
4+
buildscript {
5+
repositories {
6+
jcenter()
7+
}
8+
}
9+
10+
dependencies {
11+
classpath 'com.android.tools.build:gradle:1.0.0-rc1'
12+
}
13+
}
14+
15+
android {
16+
compileSdkVersion 21
17+
buildToolsVersion "21.1.2"
18+
19+
defaultConfig {
20+
applicationId "com.sonymobile.android.media.testmediaplayer"
21+
minSdkVersion 19
22+
targetSdkVersion 21
23+
}
24+
25+
buildTypes {
26+
release {
27+
minifyEnabled false
28+
}
29+
}
30+
}
31+
32+
dependencies {
33+
compile project(':library')
34+
compile 'com.android.support:support-v4:21.0.3'
35+
}
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="android-gradle" name="Android-Gradle">
5+
<configuration>
6+
<option name="GRADLE_PROJECT_PATH" value=":demoApplication" />
7+
</configuration>
8+
</facet>
9+
<facet type="android" name="Android">
10+
<configuration>
11+
<option name="SELECTED_BUILD_VARIANT" value="debug" />
12+
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
13+
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
14+
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugTest" />
15+
<option name="SOURCE_GEN_TASK_NAME" value="generateDebugSources" />
16+
<option name="TEST_SOURCE_GEN_TASK_NAME" value="generateDebugTestSources" />
17+
<option name="ALLOW_USER_CONFIGURATION" value="false" />
18+
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
19+
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
20+
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
21+
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
22+
</configuration>
23+
</facet>
24+
</component>
25+
<component name="NewModuleRootManager" inherit-compiler-output="false">
26+
<output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
27+
<exclude-output />
28+
<content url="file://$MODULE_DIR$">
29+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
30+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
31+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
32+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
33+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
34+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/debug" type="java-resource" />
35+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/test/debug" isTestSource="true" generated="true" />
36+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/test/debug" isTestSource="true" generated="true" />
37+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/test/debug" isTestSource="true" generated="true" />
38+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/test/debug" isTestSource="true" generated="true" />
39+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/test/debug" type="java-test-resource" />
40+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/test/debug" type="java-test-resource" />
41+
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
42+
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
43+
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
44+
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
45+
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
46+
<sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
47+
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
48+
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
49+
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
50+
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
51+
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
52+
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
53+
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
54+
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
55+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
56+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
57+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
58+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
59+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
60+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
61+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
62+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
63+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
64+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
65+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/coverage-instrumented-classes" />
66+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
67+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
68+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
69+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
70+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
71+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
72+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/libs" />
73+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
74+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
75+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/ndk" />
76+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
77+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/proguard" />
78+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
79+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
80+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
81+
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
82+
</content>
83+
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
84+
<orderEntry type="sourceFolder" forTests="false" />
85+
<orderEntry type="library" exported="" name="support-annotations-21.0.3" level="project" />
86+
<orderEntry type="library" exported="" name="support-v4-21.0.3" level="project" />
87+
<orderEntry type="module" module-name="library" exported="" />
88+
</component>
89+
</module>
90+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright (C) 2014 Sony Mobile Communications Inc.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
18+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19+
package="com.sonymobile.android.media.testmediaplayer"
20+
android:versionCode="1"
21+
android:versionName="1.0" >
22+
23+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
24+
<uses-permission android:name="android.permission.INTERNET"/>
25+
26+
<uses-sdk
27+
android:minSdkVersion="16"
28+
android:targetSdkVersion="21" />
29+
30+
<application
31+
android:allowBackup="true"
32+
android:icon="@drawable/demoapplication"
33+
android:label="@string/app_name"
34+
android:theme="@style/AppTheme" >
35+
<activity
36+
android:name="com.sonymobile.android.media.testmediaplayer.MainActivity"
37+
android:label="@string/app_name"
38+
android:screenOrientation="landscape"
39+
>
40+
<intent-filter>
41+
<action android:name="android.intent.action.MAIN" />
42+
43+
<category android:name="android.intent.category.LAUNCHER" />
44+
</intent-filter>
45+
</activity>
46+
</application>
47+
48+
</manifest>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
* Copyright (C) 2014 Sony Mobile Communications Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
16+
17+
package com.sonymobile.android.media.testmediaplayer.GUI;
18+
19+
import android.app.AlertDialog;
20+
import android.content.Context;
21+
import android.content.DialogInterface;
22+
23+
public class AudioSubtitleTrackDialog {
24+
public static final String CHOOSE_SUBTITLE_TRACK = "choose subtitle track";
25+
public static final String CHOOSE_AUDIO_TRACK = "choose audio track";
26+
27+
private Context mContext;
28+
private AlertDialog levelDialog;
29+
private String returnString;
30+
31+
public AudioSubtitleTrackDialog(Context cont){
32+
mContext = cont;
33+
returnString = "";
34+
}
35+
36+
// Creating and Building the Dialog
37+
public void createDialog(String choice, String[] trackInfo, int pos,
38+
DialogInterface.OnClickListener listener) {
39+
40+
AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
41+
if(choice.equals(CHOOSE_AUDIO_TRACK)){
42+
builder.setTitle("Select Audio Track");
43+
}else{
44+
builder.setTitle("Select Subtitle Track");
45+
}
46+
builder.setSingleChoiceItems(trackInfo, pos, listener);
47+
levelDialog = builder.create();
48+
levelDialog.show();
49+
}
50+
51+
public String getReturnString(){
52+
return returnString;
53+
}
54+
55+
public AlertDialog getDialog() {
56+
return levelDialog;
57+
}
58+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* Copyright (C) 2014 Sony Mobile Communications Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
16+
17+
package com.sonymobile.android.media.testmediaplayer.GUI;
18+
19+
import com.sonymobile.android.media.testmediaplayer.R;
20+
21+
import android.app.AlertDialog;
22+
import android.content.Context;
23+
import android.content.DialogInterface;
24+
25+
public class OnResumePlaybackDialog {
26+
27+
private Context mContext;
28+
private AlertDialog mAlertDialog;
29+
30+
public OnResumePlaybackDialog(Context cont) {
31+
mContext = cont;
32+
}
33+
34+
public void createDialog(DialogInterface.OnClickListener listener) {
35+
36+
AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
37+
builder.setTitle(R.string.resume_playing_title).setMessage(R.string.resume_playing_text)
38+
.setPositiveButton(R.string.yes, listener).setNegativeButton(R.string.no, listener);
39+
mAlertDialog = builder.create();
40+
mAlertDialog.show();
41+
}
42+
43+
public AlertDialog getDialog() {
44+
return mAlertDialog;
45+
}
46+
}

0 commit comments

Comments
 (0)