else see {@link RandomUtil#getRandom(char[] sourceChar, int length)}
85 | *
86 | */
87 | public static String getRandom(String source, int length) {
88 | return source == null ? null : getRandom(source.toCharArray(), length);
89 | }
90 |
91 | /**
92 | * get a fixed-length random string, its a mixture of chars in sourceChar
93 | *
94 | * @param sourceChar
95 | * @param length
96 | * @return
97 | *
if sourceChar is null or empty, return null
98 | *
if length less than 0, return null
99 | *
100 | */
101 | public static String getRandom(char[] sourceChar, int length) {
102 | if (sourceChar == null || sourceChar.length == 0 || length < 0) {
103 | return null;
104 | }
105 |
106 | StringBuilder str = new StringBuilder(length);
107 | Random random = new Random();
108 | for (int i = 0; i < length; i++) {
109 | str.append(sourceChar[random.nextInt(sourceChar.length)]);
110 | }
111 | return str.toString();
112 | }
113 |
114 | /**
115 | * get random int between 0 and max
116 | *
117 | * @param max
118 | * @return
119 | *
if max <= 0, return 0
120 | *
else return random int between 0 and max
121 | *
122 | */
123 | public static int getRandom(int max) {
124 | return getRandom(0, max);
125 | }
126 |
127 | /**
128 | * get random int between min and max
129 | *
130 | * @param min
131 | * @param max
132 | * @return
133 | *
if min > max, return 0
134 | *
if min == max, return min
135 | *
else return random int between min and max
136 | *
137 | */
138 | public static int getRandom(int min, int max) {
139 | if (min > max) {
140 | return 0;
141 | }
142 | if (min == max) {
143 | return min;
144 | }
145 | return min + new Random().nextInt(max - min);
146 | }
147 |
148 | /**
149 | * Shuffling algorithm, Randomly permutes the specified array using a default source of randomness
150 | */
151 | public static boolean shuffle(Object[] objArray) {
152 | if (objArray == null) {
153 | return false;
154 | }
155 | return shuffle(objArray, getRandom(objArray.length));
156 | }
157 |
158 | /**
159 | * Shuffling algorithm, Randomly permutes the specified array
160 | */
161 | public static boolean shuffle(Object[] objArray, int shuffleCount) {
162 | int length;
163 | if (objArray == null || shuffleCount < 0 || (length = objArray.length) < shuffleCount) {
164 | return false;
165 | }
166 |
167 | for (int i = 1; i <= shuffleCount; i++) {
168 | int random = getRandom(length - i);
169 | Object temp = objArray[length - i];
170 | objArray[length - i] = objArray[random];
171 | objArray[random] = temp;
172 | }
173 | return true;
174 | }
175 |
176 | /**
177 | * Shuffling algorithm, Randomly permutes the specified int array using a default source of randomness
178 | */
179 | public static int[] shuffle(int[] intArray) {
180 | if (intArray == null) {
181 | return null;
182 | }
183 |
184 | return shuffle(intArray, getRandom(intArray.length));
185 | }
186 |
187 | /**
188 | * Shuffling algorithm, Randomly permutes the specified int array
189 | */
190 | public static int[] shuffle(int[] intArray, int shuffleCount) {
191 | int length;
192 | if (intArray == null || shuffleCount < 0 || (length = intArray.length) < shuffleCount) {
193 | return null;
194 | }
195 |
196 | int[] out = new int[shuffleCount];
197 | for (int i = 1; i <= shuffleCount; i++) {
198 | int random = getRandom(length - i);
199 | out[i - 1] = intArray[random];
200 | int temp = intArray[length - i];
201 | intArray[length - i] = intArray[random];
202 | intArray[random] = temp;
203 | }
204 | return out;
205 | }
206 | }
207 |
--------------------------------------------------------------------------------
/app/src/main/java/com/elliott/supervideoplayer/utils/T.java:
--------------------------------------------------------------------------------
1 | package com.elliott.supervideoplayer.utils;
2 |
3 | import android.content.Context;
4 | import android.text.TextPaint;
5 | import android.view.Gravity;
6 | import android.view.LayoutInflater;
7 | import android.view.View;
8 | import android.widget.TextView;
9 | import android.widget.Toast;
10 |
11 | import com.elliott.supervideoplayer.R;
12 |
13 | /**
14 | * auther: elliott zhang
15 | * Emaill:18292967668@163.com
16 | */
17 | public class T {
18 | private T()
19 | {
20 | /* cannot be instantiated */
21 | throw new UnsupportedOperationException("cannot be instantiated");
22 | }
23 |
24 | public static boolean isShow = true;
25 |
26 |
27 | /**
28 | * 显示自定Toast
29 | * @param context
30 | * @param msg
31 | */
32 | public static void showToastMsgShort(Context context, String msg) {
33 | Toast toast = new Toast(context);
34 | LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
35 | View view = layoutInflater.inflate(R.layout.toast_view, null);
36 | TextView tv = (TextView) view.findViewById(R.id.toast_msg);
37 | tv.setText(msg);
38 | TextPaint tp = tv.getPaint();
39 | tp.setFakeBoldText(true);
40 | toast.setView(view);
41 | toast.setGravity(Gravity.CENTER, 0, 0);
42 | toast.setDuration(Toast.LENGTH_SHORT);
43 | toast.show();
44 | }
45 | /**
46 | * 短时间显示Toast
47 | *
48 | * @param context
49 | * @param message
50 | */
51 | public static void showShort(Context context, CharSequence message)
52 | {
53 | if (isShow)
54 | Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
55 | }
56 |
57 | /**
58 | * 短时间显示Toast
59 | *
60 | * @param context
61 | * @param message
62 | */
63 | public static void showShort(Context context, int message)
64 | {
65 | if (isShow)
66 | Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
67 | }
68 |
69 | /**
70 | * 长时间显示Toast
71 | *
72 | * @param context
73 | * @param message
74 | */
75 | public static void showLong(Context context, CharSequence message)
76 | {
77 | if (isShow)
78 | Toast.makeText(context, message, Toast.LENGTH_LONG).show();
79 | }
80 |
81 | /**
82 | * 长时间显示Toast
83 | *
84 | * @param context
85 | * @param message
86 | */
87 | public static void showLong(Context context, int message)
88 | {
89 | if (isShow)
90 | Toast.makeText(context, message, Toast.LENGTH_LONG).show();
91 | }
92 |
93 | /**
94 | * 自定义显示Toast时间
95 | *
96 | * @param context
97 | * @param message
98 | * @param duration
99 | */
100 | public static void show(Context context, CharSequence message, int duration)
101 | {
102 | if (isShow)
103 | Toast.makeText(context, message, duration).show();
104 | }
105 |
106 | /**
107 | * 自定义显示Toast时间
108 | *
109 | * @param context
110 | * @param message
111 | * @param duration
112 | */
113 | public static void show(Context context, int message, int duration)
114 | {
115 | if (isShow)
116 | Toast.makeText(context, message, duration).show();
117 | }
118 |
119 | }
120 |
--------------------------------------------------------------------------------
/app/src/main/java/com/elliott/supervideoplayer/utils/TimeUtils.java:
--------------------------------------------------------------------------------
1 | package com.elliott.supervideoplayer.utils;
2 |
3 | import java.text.SimpleDateFormat;
4 | import java.util.Date;
5 |
6 | /**
7 | * TimeUtils
8 | *
9 | * @author Trinea 2013-8-24
10 | */
11 | public class TimeUtils {
12 |
13 | public static final SimpleDateFormat DEFAULT_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
14 | public static final SimpleDateFormat DATE_FORMAT_DATE = new SimpleDateFormat("yyyy-MM-dd");
15 |
16 | private TimeUtils() {
17 | throw new AssertionError();
18 | }
19 |
20 | /**
21 | * long time to string
22 | *
23 | * @param timeInMillis
24 | * @param dateFormat
25 | * @return
26 | */
27 | public static String getTime(long timeInMillis, SimpleDateFormat dateFormat) {
28 | return dateFormat.format(new Date(timeInMillis));
29 | }
30 |
31 | /**
32 | * long time to string, format is {@link #DEFAULT_DATE_FORMAT}
33 | *
34 | * @param timeInMillis
35 | * @return
36 | */
37 | public static String getTime(long timeInMillis) {
38 | return getTime(timeInMillis, DEFAULT_DATE_FORMAT);
39 | }
40 |
41 | /**
42 | * get current time in milliseconds
43 | *
44 | * @return
45 | */
46 | public static long getCurrentTimeInLong() {
47 | return System.currentTimeMillis();
48 | }
49 |
50 | /**
51 | * get current time in milliseconds, format is {@link #DEFAULT_DATE_FORMAT}
52 | *
53 | * @return
54 | */
55 | public static String getCurrentTimeInString() {
56 | return getTime(getCurrentTimeInLong());
57 | }
58 |
59 | /**
60 | * get current time in milliseconds
61 | *
62 | * @return
63 | */
64 | public static String getCurrentTimeInString(SimpleDateFormat dateFormat) {
65 | return getTime(getCurrentTimeInLong(), dateFormat);
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/abc_ic_clear_search_api_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/abc_ic_clear_search_api_holo_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/action_delete_selected_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/action_delete_selected_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/action_edit_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/action_edit_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/action_hidden_default_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/action_hidden_default_dark.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/action_open_url.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/action_open_url.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/button_action.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/button_action.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/file_url_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/file_url_light.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/ic_delete.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_launcher_vplayer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/ic_launcher_vplayer.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/video_brightness_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/video_brightness_bg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/video_num_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/video_num_bg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/video_num_front.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/video_num_front.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/video_volumn_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-hdpi/video_volumn_bg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/file_subtitle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/file_subtitle.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_lock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_lock.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_next.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_pause.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_play.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_previous.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_previous.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_screen_fit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_screen_fit.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_screen_size.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_screen_size.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_setting.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_snapshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_snapshot.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_sreen_size_100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_sreen_size_100.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_sreen_size_crop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_sreen_size_crop.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mediacontroller_unlock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/drawable-xhdpi/mediacontroller_unlock.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/circular_border_not_radius.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
14 |
20 |
27 |
34 |
42 |
49 |
56 |
57 |
64 |
72 |
78 |
85 |
86 |
87 |
88 |
94 |
95 |
102 |
103 |
114 |
115 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/adjust_test_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/mediacontroller.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
8 |
13 |
19 |
28 |
35 |
36 |
43 |
44 |
52 |
53 |
63 |
64 |
65 |
66 |
73 |
74 |
81 |
82 |
91 |
92 |
103 |
112 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/mediacontroller_live.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
11 |
20 |
27 |
35 |
44 |
51 |
52 |
62 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/normal_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
21 |
29 |
30 |
35 |
42 |
48 |
55 |
62 |
68 |
74 |
84 |
89 |
90 |
99 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/setting_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
19 |
20 |
21 |
29 |
30 |
39 |
40 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/toast_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/video_adjust_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
17 |
22 |
23 |
29 |
30 |
37 |
38 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/video_item_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
18 |
19 |
30 |
31 |
42 |
43 |
53 |
54 |
64 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/video_play_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
11 |
12 |
16 |
24 |
25 |
31 |
32 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/video_title.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
14 |
21 |
33 |
34 |
35 |
42 |
54 |
66 |
78 |
85 |
86 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/video_title_live.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
15 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_vplayer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/mipmap-hdpi/ic_launcher_vplayer.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
8 |
9 | #ffffff
10 | #2ea18f
11 | #CC0000
12 | #BFBFBF
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 | 1dp
7 | 3dp
8 | 5dp
9 | 8dp
10 | 10dp
11 | 12dp
12 | 13dp
13 | 14dp
14 | 15dp
15 | 16dp
16 | 18dp
17 | 20dp
18 | 22dp
19 | 24dp
20 | 25dp
21 | 30dp
22 | 35dp
23 | 40dp
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | SuperVideoPlayer
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/test/java/com/elliott/supervideoplayer/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.elliott.supervideoplayer;
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 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Nov 10 17:23:03 CST 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.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # Attempt to set APP_HOME
46 | # Resolve links: $0 may be a link
47 | PRG="$0"
48 | # Need this for relative symlinks.
49 | while [ -h "$PRG" ] ; do
50 | ls=`ls -ld "$PRG"`
51 | link=`expr "$ls" : '.*-> \(.*\)$'`
52 | if expr "$link" : '/.*' > /dev/null; then
53 | PRG="$link"
54 | else
55 | PRG=`dirname "$PRG"`"/$link"
56 | fi
57 | done
58 | SAVED="`pwd`"
59 | cd "`dirname \"$PRG\"`/" >/dev/null
60 | APP_HOME="`pwd -P`"
61 | cd "$SAVED" >/dev/null
62 |
63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64 |
65 | # Determine the Java command to use to start the JVM.
66 | if [ -n "$JAVA_HOME" ] ; then
67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68 | # IBM's JDK on AIX uses strange locations for the executables
69 | JAVACMD="$JAVA_HOME/jre/sh/java"
70 | else
71 | JAVACMD="$JAVA_HOME/bin/java"
72 | fi
73 | if [ ! -x "$JAVACMD" ] ; then
74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75 |
76 | Please set the JAVA_HOME variable in your environment to match the
77 | location of your Java installation."
78 | fi
79 | else
80 | JAVACMD="java"
81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82 |
83 | Please set the JAVA_HOME variable in your environment to match the
84 | location of your Java installation."
85 | fi
86 |
87 | # Increase the maximum file descriptors if we can.
88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89 | MAX_FD_LIMIT=`ulimit -H -n`
90 | if [ $? -eq 0 ] ; then
91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92 | MAX_FD="$MAX_FD_LIMIT"
93 | fi
94 | ulimit -n $MAX_FD
95 | if [ $? -ne 0 ] ; then
96 | warn "Could not set maximum file descriptor limit: $MAX_FD"
97 | fi
98 | else
99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100 | fi
101 | fi
102 |
103 | # For Darwin, add options to specify how the application appears in the dock
104 | if $darwin; then
105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106 | fi
107 |
108 | # For Cygwin, switch paths to Windows format before running java
109 | if $cygwin ; then
110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112 | JAVACMD=`cygpath --unix "$JAVACMD"`
113 |
114 | # We build the pattern for arguments to be converted via cygpath
115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116 | SEP=""
117 | for dir in $ROOTDIRSRAW ; do
118 | ROOTDIRS="$ROOTDIRS$SEP$dir"
119 | SEP="|"
120 | done
121 | OURCYGPATTERN="(^($ROOTDIRS))"
122 | # Add a user-defined pattern to the cygpath arguments
123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125 | fi
126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
127 | i=0
128 | for arg in "$@" ; do
129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131 |
132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134 | else
135 | eval `echo args$i`="\"$arg\""
136 | fi
137 | i=$((i+1))
138 | done
139 | case $i in
140 | (0) set -- ;;
141 | (1) set -- "$args0" ;;
142 | (2) set -- "$args0" "$args1" ;;
143 | (3) set -- "$args0" "$args1" "$args2" ;;
144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150 | esac
151 | fi
152 |
153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154 | function splitJvmOpts() {
155 | JVM_OPTS=("$@")
156 | }
157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159 |
160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
161 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':vitamio'
2 |
--------------------------------------------------------------------------------
/source/Screenshot_2016-05-19-11-39-39.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/source/Screenshot_2016-05-19-11-39-39.jpeg
--------------------------------------------------------------------------------
/source/Screenshot_2016-05-19-11-39-49.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/source/Screenshot_2016-05-19-11-39-49.jpeg
--------------------------------------------------------------------------------
/source/Screenshot_2016-05-19-11-40-21.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/source/Screenshot_2016-05-19-11-40-21.jpeg
--------------------------------------------------------------------------------
/source/start.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/source/start.gif
--------------------------------------------------------------------------------
/source/start3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/source/start3.gif
--------------------------------------------------------------------------------
/vitamio/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/vitamio/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle/
2 | .DS_Store
3 | local.properties
4 |
5 | # build files
6 | build/
7 | bin/
8 | gen/
9 | output/
10 |
11 | # android studio
12 | *.iml
13 | .idea
--------------------------------------------------------------------------------
/vitamio/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | InitActivity
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/vitamio/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/vitamio/README.md:
--------------------------------------------------------------------------------
1 | Vitamio
2 | ===============
3 |
4 | This folder contains the main library which should be linked against as an
5 | Android library project in your application.
6 |
--------------------------------------------------------------------------------
/vitamio/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | dependencies {
4 | }
5 |
6 | android {
7 | compileSdkVersion 21
8 | buildToolsVersion "21.1"
9 |
10 | defaultConfig {
11 | minSdkVersion 15
12 | targetSdkVersion 21
13 | }
14 | sourceSets {
15 | main {
16 | manifest.srcFile 'AndroidManifest.xml'
17 | java.srcDirs = ['src']
18 | jniLibs.srcDirs = ['libs']
19 | aidl.srcDirs = ['src']
20 | renderscript.srcDirs = ['src']
21 | res.srcDirs = ['res']
22 | }
23 |
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/vitamio/gradle.properties:
--------------------------------------------------------------------------------
1 | ## Project-wide Gradle settings.
2 | #
3 | # For more details on how to configure your build environment visit
4 | # http://www.gradle.org/docs/current/userguide/build_environment.html
5 | #
6 | # Specifies the JVM arguments used for the daemon process.
7 | # The setting is particularly useful for tweaking memory settings.
8 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
9 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
10 | #
11 | # When configured, Gradle will run in incubating parallel mode.
12 | # This option should only be used with decoupled projects. More details, visit
13 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
14 | # org.gradle.parallel=true
15 | #Mon Apr 11 18:38:14 CST 2016
16 | systemProp.http.proxyHost=mirrors.neusoft.edu.cn
17 | systemProp.http.proxyPort=80
18 |
--------------------------------------------------------------------------------
/vitamio/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/vitamio/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/vitamio/libs/arm64-v8a/libOMX.24.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/arm64-v8a/libOMX.24.so
--------------------------------------------------------------------------------
/vitamio/libs/arm64-v8a/libffmpeg.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/arm64-v8a/libffmpeg.so
--------------------------------------------------------------------------------
/vitamio/libs/arm64-v8a/libstlport_shared.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/arm64-v8a/libstlport_shared.so
--------------------------------------------------------------------------------
/vitamio/libs/arm64-v8a/libvao.0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/arm64-v8a/libvao.0.so
--------------------------------------------------------------------------------
/vitamio/libs/arm64-v8a/libvinit.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/arm64-v8a/libvinit.so
--------------------------------------------------------------------------------
/vitamio/libs/arm64-v8a/libvplayer.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/arm64-v8a/libvplayer.so
--------------------------------------------------------------------------------
/vitamio/libs/arm64-v8a/libvscanner.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/arm64-v8a/libvscanner.so
--------------------------------------------------------------------------------
/vitamio/libs/arm64-v8a/libvvo.0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/arm64-v8a/libvvo.0.so
--------------------------------------------------------------------------------
/vitamio/libs/arm64-v8a/libvvo.9.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/arm64-v8a/libvvo.9.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libOMX.11.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libOMX.11.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libOMX.14.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libOMX.14.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libOMX.18.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libOMX.18.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libOMX.9.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libOMX.9.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libffmpeg.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libffmpeg.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libstlport_shared.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libstlport_shared.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libvao.0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libvao.0.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libvinit.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libvinit.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libvplayer.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libvplayer.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libvscanner.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libvscanner.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libvvo.0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libvvo.0.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libvvo.7.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libvvo.7.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libvvo.8.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libvvo.8.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libvvo.9.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libvvo.9.so
--------------------------------------------------------------------------------
/vitamio/libs/armeabi-v7a/libvvo.j.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/armeabi-v7a/libvvo.j.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libOMX.14.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libOMX.14.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libOMX.18.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libOMX.18.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libOMX.9.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libOMX.9.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libffmpeg.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libffmpeg.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libstlport_shared.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libstlport_shared.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libvao.0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libvao.0.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libvinit.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libvinit.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libvplayer.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libvplayer.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libvscanner.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libvscanner.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libvvo.0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libvvo.0.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libvvo.9.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libvvo.9.so
--------------------------------------------------------------------------------
/vitamio/libs/x86/libvvo.j.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/libs/x86/libvvo.j.so
--------------------------------------------------------------------------------
/vitamio/lint.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/vitamio/local.properties:
--------------------------------------------------------------------------------
1 | ## This file is automatically generated by Android Studio.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must *NOT* be checked into Version Control Systems,
5 | # as it contains information specific to your local configuration.
6 | #
7 | # Location of the SDK. This is only used by Gradle.
8 | # For customization when using a Version Control System, please read the
9 | # header note.
10 | #Mon Apr 11 18:37:55 CST 2016
11 | sdk.dir=/Users/gengsong/Documents/dev_path/sdk
12 |
--------------------------------------------------------------------------------
/vitamio/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
22 | # For Vitamio classes
23 | -keep public class io.vov.vitamio.MediaPlayer { *; }
24 | -keep public class io.vov.vitamio.IMediaScannerService { *; }
25 | -keep public class io.vov.vitamio.MediaScanner { *; }
26 | -keep public class io.vov.vitamio.MediaScannerClient { *; }
27 | -keep public class io.vov.vitamio.VitamioLicense { *; }
28 | -keep public class io.vov.vitamio.Vitamio { *; }
29 | -keep public class io.vov.vitamio.MediaMetadataRetriever { *; }
30 |
--------------------------------------------------------------------------------
/vitamio/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 | android.library=true
16 |
--------------------------------------------------------------------------------
/vitamio/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-xhdpi/mediacontroller_pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-xhdpi/mediacontroller_pause.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-xhdpi/mediacontroller_play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-xhdpi/mediacontroller_play.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-xhdpi/scrubber_control_disabled_holo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-xhdpi/scrubber_control_disabled_holo.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-xhdpi/scrubber_control_focused_holo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-xhdpi/scrubber_control_focused_holo.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-xhdpi/scrubber_control_normal_holo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-xhdpi/scrubber_control_normal_holo.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-xhdpi/scrubber_control_pressed_holo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-xhdpi/scrubber_control_pressed_holo.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-xhdpi/scrubber_primary_holo.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-xhdpi/scrubber_primary_holo.9.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-xhdpi/scrubber_secondary_holo.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-xhdpi/scrubber_secondary_holo.9.png
--------------------------------------------------------------------------------
/vitamio/res/drawable-xhdpi/scrubber_track_holo_dark.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curtis2/SuperVideoPlayer/f7e0afcdd9785f635204e71e0054b7940c3c94c2/vitamio/res/drawable-xhdpi/scrubber_track_holo_dark.9.png
--------------------------------------------------------------------------------
/vitamio/res/drawable/mediacontroller_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/vitamio/res/drawable/scrubber_control_selector_holo.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/vitamio/res/drawable/scrubber_progress_horizontal_holo_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
17 |
18 |
21 |
22 |
23 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/vitamio/res/layout/mediacontroller.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
22 |
23 |
31 |
32 |
40 |
41 |
51 |
52 |
53 |
61 |
62 |
--------------------------------------------------------------------------------
/vitamio/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | #00000000
5 | #ff53c1bd
6 | #99000000
7 |
8 |
--------------------------------------------------------------------------------
/vitamio/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | VitamioLibrary
5 | Initializing decoders…
6 | Vitamio tools
7 | Access Vitamio package and resources.
8 | Receive Vitamio messages
9 | Receive all broadcasts from Vitamio service.
10 | Write Vitamio providers
11 | Delete, update or create new items in Vitamio providers.
12 |
13 | Cannot play video
14 | Sorry, this video is not valid for streaming to
15 | this device.
16 |
17 | Sorry, this video cannot be played.
18 | OK
19 | Play/Pause
20 |
21 |
--------------------------------------------------------------------------------
/vitamio/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
15 |
16 |
21 |
22 |
--------------------------------------------------------------------------------
/vitamio/src/io/vov/vitamio/LibsChecker.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 YIXIA.COM
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of 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,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package io.vov.vitamio;
18 |
19 | import android.app.Activity;
20 | import android.content.Intent;
21 |
22 | /**
23 | * LibsChecker is a wrapper of {@link Vitamio}, it helps to initialize Vitamio
24 | * easily.
25 | *
26 | *
27 | * public void onCreate(Bundle b) {
28 | * super.onCreate(b);
29 | * if (!io.vov.vitamio.LibsChecker.checkVitamioLibs(this))
30 | * return;
31 | *
32 | * // Code using Vitamio should go below {@link LibsChecker#checkVitamioLibs}
33 | * }
34 | *
35 | */
36 | public final class LibsChecker {
37 | public static final String FROM_ME = "fromVitamioInitActivity";
38 |
39 | public static final boolean checkVitamioLibs(Activity ctx) {
40 | if (!Vitamio.isInitialized(ctx) && !ctx.getIntent().getBooleanExtra(FROM_ME, false)) {
41 | Intent i = new Intent();
42 | i.setClassName(Vitamio.getVitamioPackage(), "io.vov.vitamio.activity.InitActivity");
43 | i.putExtras(ctx.getIntent());
44 | i.setData(ctx.getIntent().getData());
45 | i.putExtra("package", ctx.getPackageName());
46 | i.putExtra("className", ctx.getClass().getName());
47 | ctx.startActivity(i);
48 | ctx.finish();
49 | return false;
50 | }
51 | return true;
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/vitamio/src/io/vov/vitamio/MediaScannerClient.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006 The Android Open Source Project
3 | * Copyright (C) 2013 YIXIA.COM
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 | package io.vov.vitamio;
19 |
20 | /**
21 | * DON'T TOUCH THIS FILE IF YOU DON'T KNOW THE MediaScanner PROCEDURE!!!
22 | */
23 | public interface MediaScannerClient {
24 | public void scanFile(String path, long lastModified, long fileSize);
25 |
26 | public void addNoMediaFolder(String path);
27 |
28 | public void handleStringTag(String name, byte[] value, String valueEncoding);
29 |
30 | public void setMimeType(String mimeType);
31 | }
--------------------------------------------------------------------------------
/vitamio/src/io/vov/vitamio/ThumbnailUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006 The Android Open Source Project
3 | * Copyright (C) 2013 YIXIA.COM
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 | package io.vov.vitamio;
19 |
20 | import android.content.Context;
21 | import android.graphics.Bitmap;
22 | import android.graphics.Canvas;
23 | import android.graphics.Matrix;
24 | import android.graphics.Rect;
25 | import io.vov.vitamio.provider.MediaStore.Video;
26 |
27 | /**
28 | * ThumbnailUtils is a wrapper of MediaMetadataRetriever to retrive a thumbnail
29 | * of video file.
30 | *
31 | *