Commit 9a249d1b716a1defbcd775883a95073556b019c1

Authored by Imanol-Mikel Barba Sabariego
1 parent 82834865

La xorradita, ahora si

src/com/upc/pbe/upcnews/HLS.java
@@ -61,9 +61,8 @@ public class HLS @@ -61,9 +61,8 @@ public class HLS
61 currentQuality = qualities.size()-1; 61 currentQuality = qualities.size()-1;
62 break; 62 break;
63 } 63 }
64 - setDefault = true;  
65 } 64 }
66 - 65 + setDefault = true;
67 segments = qualities.get(currentQuality).getSegments(); 66 segments = qualities.get(currentQuality).getSegments();
68 if (currentVideo == videos.size()) 67 if (currentVideo == videos.size())
69 { 68 {
@@ -122,6 +121,7 @@ public class HLS @@ -122,6 +121,7 @@ public class HLS
122 } 121 }
123 if (currentQuality != newQuality) 122 if (currentQuality != newQuality)
124 { 123 {
  124 + setDefault = false;
125 currentQuality = newQuality; 125 currentQuality = newQuality;
126 currentVideo--; // Corregimos el del loadVideo() 126 currentVideo--; // Corregimos el del loadVideo()
127 loadVideo(); // Cargamos la nueva calidad 127 loadVideo(); // Cargamos la nueva calidad
@@ -129,4 +129,4 @@ public class HLS @@ -129,4 +129,4 @@ public class HLS
129 } 129 }
130 } 130 }
131 131
132 -}  
133 \ No newline at end of file 132 \ No newline at end of file
  133 +}