diff --git a/gen/com/upc/pbe/upcnews/R.java b/gen/com/upc/pbe/upcnews/R.java
deleted file mode 100644
index eb02d98..0000000
--- a/gen/com/upc/pbe/upcnews/R.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/* AUTO-GENERATED FILE. DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found. It
- * should not be modified by hand.
- */
-
-package com.upc.pbe.upcnews;
-
-public final class R {
- public static final class attr {
- }
- public static final class color {
- public static final int backgroundmain=0x7f050000;
- }
- public static final class dimen {
- public static final int TitleSize=0x7f060000;
- }
- public static final class drawable {
- public static final int ic_action_search=0x7f020000;
- public static final int ic_launcher=0x7f020001;
- public static final int ic_ledarklogo=0x7f020002;
- public static final int ic_menu_name=0x7f020003;
- public static final int ic_startbutton=0x7f020004;
- public static final int startbuttontoggle=0x7f020005;
- }
- public static final class id {
- public static final int AbsoluteLayout1=0x7f0a0006;
- public static final int LinearLayout1=0x7f0a0001;
- public static final int button=0x7f0a0008;
- public static final int itemhelp=0x7f0a000c;
- public static final int itemprefs=0x7f0a000b;
- public static final int listView1=0x7f0a0003;
- public static final int menu_settings=0x7f0a000a;
- public static final int rowTextView=0x7f0a0009;
- public static final int textView1=0x7f0a0004;
- public static final int textView2=0x7f0a0005;
- public static final int textViewTitle=0x7f0a0002;
- public static final int textViewXml=0x7f0a0007;
- public static final int videoView1=0x7f0a0000;
- }
- public static final class layout {
- public static final int activity_video=0x7f030000;
- public static final int dirs=0x7f030001;
- public static final int help=0x7f030002;
- public static final int main_activity=0x7f030003;
- public static final int rowlayout=0x7f030004;
- }
- public static final class menu {
- public static final int activity_main=0x7f090000;
- public static final int activity_video=0x7f090001;
- public static final int menu=0x7f090002;
- }
- public static final class string {
- public static final int app_name=0x7f070000;
- public static final int button=0x7f07000c;
- public static final int button1=0x7f07000d;
- public static final int desc=0x7f070009;
- public static final int descarregar=0x7f070003;
- public static final int dir=0x7f07000a;
- public static final int directoris=0x7f07000b;
- public static final int hello_world=0x7f070010;
- public static final int help=0x7f070008;
- public static final int hint=0x7f070004;
- public static final int menu_settings=0x7f070001;
- public static final int prefs=0x7f070007;
- public static final int startbuttondescription=0x7f07000f;
- public static final int title=0x7f07000e;
- public static final int title_activity_main=0x7f070002;
- public static final int title_activity_video=0x7f070011;
- public static final int url=0x7f070005;
- public static final int urlhint=0x7f070006;
- }
- public static final class style {
- public static final int AppTheme=0x7f080000;
- }
- public static final class xml {
- public static final int prefs=0x7f040000;
- }
-}
diff --git a/res/layout/main_activity.xml b/res/layout/main_activity.xml
deleted file mode 100644
index 60a0431..0000000
--- a/res/layout/main_activity.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/com/upc/pbe/upcnews/Directoris.java b/src/com/upc/pbe/upcnews/Directoris.java
index 11cd55e..7957c63 100644
--- a/src/com/upc/pbe/upcnews/Directoris.java
+++ b/src/com/upc/pbe/upcnews/Directoris.java
@@ -93,6 +93,9 @@ public class Directoris extends Activity implements OnItemClickListener
{
text.setTypeface(null,Typeface.BOLD);
Log.d(TAG, text.getText().toString());
+ /*
+ * No va, mejorar (optional)
+ */
}
}
}
@@ -109,8 +112,8 @@ public class Directoris extends Activity implements OnItemClickListener
{
ArrayList m3u8parsed = p.parseFile(playlist);
Log.d(TAG, "parsing completed");
- //HLS h = new HLS(m3u8parsed);
- //h.start();
+ HLS h = new HLS(m3u8parsed);
+ h.start();
}
catch (ErrorException e)
diff --git a/src/com/upc/pbe/upcnews/HLS.java b/src/com/upc/pbe/upcnews/HLS.java
index 7beb1a6..7ae38a0 100644
--- a/src/com/upc/pbe/upcnews/HLS.java
+++ b/src/com/upc/pbe/upcnews/HLS.java
@@ -6,25 +6,22 @@ public class HLS {
static final String TAG = "HLS";
- ArrayList ppls;
+ ArrayList videos;
int numvideo;
- int quality; //0 és la més alta
+ int quality; //0 es la más alta
public HLS(ArrayList parsed)
{
- this.ppls = parsed;
+ this.videos = parsed;
numvideo = 0;
quality = 0;
}
- public void start(){
-
- //Primer vídeo que hi hagi, amb la millor qualitat possible
- for(int i = 0 ; i < ppls.get(numvideo).getLists().get(quality).getSegments().size() ; i++){
-
- Segment seg = ppls.get(numvideo).getLists().get(quality).getSegments().get(i);
-
-
+ public void start()
+ {
+ for(int i = 0 ; i < videos.get(numvideo).getLists().get(quality).getSegments().size() ; i++)
+ {
+ Segment seg = videos.get(numvideo).getLists().get(quality).getSegments().get(i);
}
}