From 63f19fda43f350bdf6a0e8ab56db66cd5bb87dac Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Wed, 5 Dec 2012 15:54:28 +0000 Subject: [PATCH] --- src/com/upc/pbe/upcnews/HLS.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/upc/pbe/upcnews/HLS.java b/src/com/upc/pbe/upcnews/HLS.java index 1e8a961..5d18cde 100644 --- a/src/com/upc/pbe/upcnews/HLS.java +++ b/src/com/upc/pbe/upcnews/HLS.java @@ -26,8 +26,10 @@ public class HLS { //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); + //canviar .ts en .mp4 - reader = ToolFactory.makeReader(ppls.get(numvideo).getLists().get(quality).getSegments().get(i).getURL()); + reader = ToolFactory.makeReader(seg.getURL()); reader.addListener(ToolFactory.makeWriter("output.mov", reader)); while (reader.readPacket() == null); } -- libgit2 0.22.2