Commit 9d5699cc6f260fda18c6f2a691e729ca0704572d
1 parent
46f3a709
--no commit message
Showing
16 changed files
with
16 additions
and
75 deletions
AndroidManifest.xml
@@ -36,6 +36,11 @@ | @@ -36,6 +36,11 @@ | ||
36 | </activity> | 36 | </activity> |
37 | <activity android:name=".VideoActivity" > | 37 | <activity android:name=".VideoActivity" > |
38 | </activity> | 38 | </activity> |
39 | + <activity | ||
40 | + android:name="io.vov.vitamio.activity.InitActivity" | ||
41 | + android:launchMode="singleTop" | ||
42 | + android:theme="@android:style/Theme.NoTitleBar" | ||
43 | + android:windowSoftInputMode="stateAlwaysHidden" /> | ||
39 | </application> | 44 | </application> |
40 | 45 | ||
41 | </manifest> | 46 | </manifest> |
42 | \ No newline at end of file | 47 | \ No newline at end of file |
VitamioBundle/AndroidManifest.xml
@@ -10,12 +10,7 @@ | @@ -10,12 +10,7 @@ | ||
10 | <application | 10 | <application |
11 | android:icon="@drawable/ic_launcher" | 11 | android:icon="@drawable/ic_launcher" |
12 | android:label="@string/vitamio_name" > | 12 | android:label="@string/vitamio_name" > |
13 | - <activity | ||
14 | - android:name="io.vov.vitamio.activity.InitActivity" | ||
15 | - android:configChanges="orientation|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation" | ||
16 | - android:launchMode="singleTop" | ||
17 | - android:theme="@android:style/Theme.NoTitleBar" | ||
18 | - android:windowSoftInputMode="stateAlwaysHidden" /> | 13 | + |
19 | </application> | 14 | </application> |
20 | 15 | ||
21 | </manifest> | 16 | </manifest> |
22 | \ No newline at end of file | 17 | \ No newline at end of file |
VitamioBundle/bin/AndroidManifest.xml
@@ -10,12 +10,7 @@ | @@ -10,12 +10,7 @@ | ||
10 | <application | 10 | <application |
11 | android:icon="@drawable/ic_launcher" | 11 | android:icon="@drawable/ic_launcher" |
12 | android:label="@string/vitamio_name" > | 12 | android:label="@string/vitamio_name" > |
13 | - <activity | ||
14 | - android:name="io.vov.vitamio.activity.InitActivity" | ||
15 | - android:configChanges="orientation|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation" | ||
16 | - android:launchMode="singleTop" | ||
17 | - android:theme="@android:style/Theme.NoTitleBar" | ||
18 | - android:windowSoftInputMode="stateAlwaysHidden" /> | 13 | + |
19 | </application> | 14 | </application> |
20 | 15 | ||
21 | </manifest> | 16 | </manifest> |
22 | \ No newline at end of file | 17 | \ No newline at end of file |
VitamioBundle/bin/io.vov.vitamio.activity.initactivity.jar
No preview for this file type
VitamioBundle/gen/io/vov/vitamio/BuildConfig.class
0 → 100644
No preview for this file type
VitamioBundle/gen/io/vov/vitamio/BuildConfig.java deleted
VitamioBundle/gen/io/vov/vitamio/R$attr.class
0 → 100644
No preview for this file type
VitamioBundle/gen/io/vov/vitamio/R$drawable.class
0 → 100644
No preview for this file type
VitamioBundle/gen/io/vov/vitamio/R$id.class
0 → 100644
No preview for this file type
VitamioBundle/gen/io/vov/vitamio/R$layout.class
0 → 100644
No preview for this file type
VitamioBundle/gen/io/vov/vitamio/R$raw.class
0 → 100644
No preview for this file type
VitamioBundle/gen/io/vov/vitamio/R$string.class
0 → 100644
No preview for this file type
VitamioBundle/gen/io/vov/vitamio/R$style.class
0 → 100644
No preview for this file type
VitamioBundle/gen/io/vov/vitamio/R.class
0 → 100644
No preview for this file type
VitamioBundle/gen/io/vov/vitamio/R.java deleted
1 | -/* AUTO-GENERATED FILE. DO NOT MODIFY. | ||
2 | - * | ||
3 | - * This class was automatically generated by the | ||
4 | - * aapt tool from the resource data it found. It | ||
5 | - * should not be modified by hand. | ||
6 | - */ | ||
7 | - | ||
8 | -package io.vov.vitamio; | ||
9 | - | ||
10 | -public final class R { | ||
11 | - public static final class attr { | ||
12 | - } | ||
13 | - public static final class drawable { | ||
14 | - public static int ic_launcher=0x7f020000; | ||
15 | - public static int mediacontroller_bg=0x7f020001; | ||
16 | - public static int mediacontroller_pause01=0x7f020002; | ||
17 | - public static int mediacontroller_pause02=0x7f020003; | ||
18 | - public static int mediacontroller_pause_button=0x7f020004; | ||
19 | - public static int mediacontroller_play01=0x7f020005; | ||
20 | - public static int mediacontroller_play02=0x7f020006; | ||
21 | - public static int mediacontroller_play_button=0x7f020007; | ||
22 | - public static int mediacontroller_seekbar=0x7f020008; | ||
23 | - public static int mediacontroller_seekbar01=0x7f020009; | ||
24 | - public static int mediacontroller_seekbar02=0x7f02000a; | ||
25 | - public static int mediacontroller_seekbar_thumb=0x7f02000b; | ||
26 | - } | ||
27 | - public static final class id { | ||
28 | - public static int mediacontroller_file_name=0x7f070004; | ||
29 | - public static int mediacontroller_play_pause=0x7f070000; | ||
30 | - public static int mediacontroller_seekbar=0x7f070003; | ||
31 | - public static int mediacontroller_time_current=0x7f070001; | ||
32 | - public static int mediacontroller_time_total=0x7f070002; | ||
33 | - } | ||
34 | - public static final class layout { | ||
35 | - public static int mediacontroller=0x7f030000; | ||
36 | - } | ||
37 | - public static final class raw { | ||
38 | - public static int libarm=0x7f040000; | ||
39 | - } | ||
40 | - public static final class string { | ||
41 | - public static int mediacontroller_play_pause=0x7f050006; | ||
42 | - public static int vitamio_init_decoders=0x7f050001; | ||
43 | - public static int vitamio_name=0x7f050000; | ||
44 | - public static int vitamio_videoview_error_button=0x7f050005; | ||
45 | - public static int vitamio_videoview_error_text_invalid_progressive_playback=0x7f050003; | ||
46 | - public static int vitamio_videoview_error_text_unknown=0x7f050004; | ||
47 | - public static int vitamio_videoview_error_title=0x7f050002; | ||
48 | - } | ||
49 | - public static final class style { | ||
50 | - public static int MediaController_SeekBar=0x7f060000; | ||
51 | - public static int MediaController_Text=0x7f060001; | ||
52 | - } | ||
53 | -} |
src/com/upc/pbe/upcnews/VideoActivity.java
@@ -5,7 +5,6 @@ import java.io.IOException; | @@ -5,7 +5,6 @@ import java.io.IOException; | ||
5 | import io.vov.vitamio.widget.VideoView; | 5 | import io.vov.vitamio.widget.VideoView; |
6 | import android.app.Activity; | 6 | import android.app.Activity; |
7 | import io.vov.vitamio.MediaPlayer; | 7 | import io.vov.vitamio.MediaPlayer; |
8 | -import android.net.Uri; | ||
9 | import android.os.Bundle; | 8 | import android.os.Bundle; |
10 | import android.util.Log; | 9 | import android.util.Log; |
11 | import android.view.Menu; | 10 | import android.view.Menu; |
@@ -21,8 +20,13 @@ public class VideoActivity extends Activity { | @@ -21,8 +20,13 @@ public class VideoActivity extends Activity { | ||
21 | 20 | ||
22 | @Override | 21 | @Override |
23 | public void onCreate(Bundle savedInstanceState) { | 22 | public void onCreate(Bundle savedInstanceState) { |
23 | + | ||
24 | //Creem el layout | 24 | //Creem el layout |
25 | super.onCreate(savedInstanceState); | 25 | super.onCreate(savedInstanceState); |
26 | + if (!io.vov.vitamio.LibsChecker.checkVitamioLibs(this)) | ||
27 | + { | ||
28 | + return; | ||
29 | + } | ||
26 | setContentView(R.layout.activity_video); | 30 | setContentView(R.layout.activity_video); |
27 | video = (VideoView) findViewById(R.id.videoView1); | 31 | video = (VideoView) findViewById(R.id.videoView1); |
28 | //Creem un listener associat al fi de l'activitat (el fi de cada ts) | 32 | //Creem un listener associat al fi de l'activitat (el fi de cada ts) |
@@ -45,10 +49,11 @@ public class VideoActivity extends Activity { | @@ -45,10 +49,11 @@ public class VideoActivity extends Activity { | ||
45 | return; | 49 | return; |
46 | } | 50 | } |
47 | Log.d(TAG,url); | 51 | Log.d(TAG,url); |
48 | - video.setVideoURI(Uri.parse(url)); | 52 | + video.setVideoPath(url); |
53 | + video.setVideoQuality(MediaPlayer.VIDEOQUALITY_HIGH); | ||
49 | video.setMediaController(new MediaController(this)); | 54 | video.setMediaController(new MediaController(this)); |
50 | - video.start(); | ||
51 | - video.requestFocus(); | 55 | + /*video.start(); |
56 | + video.requestFocus();*/ | ||
52 | } | 57 | } |
53 | 58 | ||
54 | public void playNext() { | 59 | public void playNext() { |