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