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));