From 90a952d3a3af54841a3546bc4db65eb2646a886f Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Wed, 5 Dec 2012 15:38:00 +0000 Subject: [PATCH] --- src/com/upc/pbe/upcnews/VideoActivity.java | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/src/com/upc/pbe/upcnews/VideoActivity.java b/src/com/upc/pbe/upcnews/VideoActivity.java index 8512bd3..eb1b3bd 100644 --- a/src/com/upc/pbe/upcnews/VideoActivity.java +++ b/src/com/upc/pbe/upcnews/VideoActivity.java @@ -1,5 +1,8 @@ package com.upc.pbe.upcnews; +import com.xuggle.mediatool.IMediaReader; +import com.xuggle.mediatool.ToolFactory; + import android.net.Uri; import android.os.Bundle; import android.app.Activity; @@ -11,6 +14,8 @@ public class VideoActivity extends Activity { VideoView video; String url; + IMediaReader reader; + @Override public void onCreate(Bundle savedInstanceState) { @@ -19,6 +24,10 @@ public class VideoActivity extends Activity { url = "http://imanolbarba.myftp.biz/video.mp4"; //url = ((UpcApp) getApplication()).getDesc(); + reader = ToolFactory.makeReader("input.flv"); + reader.addListener(ToolFactory.makeWriter("output.mov", reader)); + while(reader.readPacket() == null); + //Creacio del VideoPlayer associat a una URL video = (VideoView) findViewById(R.id.videoView1); video.setVideoURI(Uri.parse(url)); -- libgit2 0.22.2