From e2790528cc952f39c385b69342cb45ef1ff9e31a Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Sun, 9 Dec 2012 21:19:43 +0000 Subject: [PATCH] O.o' --- src/com/upc/pbe/upcnews/Directoris.java | 13 ++----------- src/com/upc/pbe/upcnews/VideoActivity.java | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/com/upc/pbe/upcnews/Directoris.java b/src/com/upc/pbe/upcnews/Directoris.java index 5f72680..a215fb5 100644 --- a/src/com/upc/pbe/upcnews/Directoris.java +++ b/src/com/upc/pbe/upcnews/Directoris.java @@ -65,7 +65,7 @@ public class Directoris extends Activity implements OnItemClickListener { public void onItemClick(AdapterView parent, View view, int position, long id) { //Determina el funcionament al clickar en una de les entrades de al ListView String path = ((TextView)view).getText().toString(); - //Si es un m3u8, el descarrega, parseja i inicia la reproducció + //Si es un m3u8, el descarrega, parseja i inicia la reproducci� if(path.endsWith(".m3u8")){ path = currentFolder + path; String playlist; @@ -89,7 +89,7 @@ public class Directoris extends Activity implements OnItemClickListener { * startPlayer(segment[0],segment[1]); */ String[] test = {"/sdcard/a.ts","LE TEST"}; - startPlayer(test[0],test[1]); + startActivity(new Intent(this, VideoActivity.class)); } catch (ErrorException e){ @@ -121,15 +121,6 @@ public class Directoris extends Activity implements OnItemClickListener { showResources(); } } - - private void startPlayer(String url, String title) { - Intent i = new Intent(); - i.setComponent(new ComponentName("me.abitno.vplayer.t", "me.abitno.vplayer.VideoActivity")); - i.setAction("me.abitno.vplayer.action.VIEW"); - i.setData(Uri.parse(url)); - i.putExtra("displayName", title); - startActivity(i); - } public boolean onKeyDown(int keyCode, KeyEvent event) { //Determina el funcionament al apretar la tecla de tornar enrere diff --git a/src/com/upc/pbe/upcnews/VideoActivity.java b/src/com/upc/pbe/upcnews/VideoActivity.java index bcfd1d5..b4e360f 100644 --- a/src/com/upc/pbe/upcnews/VideoActivity.java +++ b/src/com/upc/pbe/upcnews/VideoActivity.java @@ -17,7 +17,7 @@ public class VideoActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_video); - url = "http://imanolbarba.myftp.biz/video.mp4"; + url = "http://imanolbarba.myftp.biz/a.ts"; // url = ((UpcApp) getApplication()).getDesc(); -- libgit2 0.22.2