summaryrefslogtreecommitdiff
path: root/androvdr/src/de/bjusystems/androvdr/gui/VideoActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'androvdr/src/de/bjusystems/androvdr/gui/VideoActivity.java')
-rw-r--r--androvdr/src/de/bjusystems/androvdr/gui/VideoActivity.java67
1 files changed, 67 insertions, 0 deletions
diff --git a/androvdr/src/de/bjusystems/androvdr/gui/VideoActivity.java b/androvdr/src/de/bjusystems/androvdr/gui/VideoActivity.java
new file mode 100644
index 0000000..3ec7981
--- /dev/null
+++ b/androvdr/src/de/bjusystems/androvdr/gui/VideoActivity.java
@@ -0,0 +1,67 @@
+package de.bjusystems.androvdr.gui;
+
+import android.app.Activity;
+import android.net.Uri;
+import android.os.Bundle;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.widget.Button;
+import android.widget.MediaController;
+import android.widget.VideoView;
+import de.bjusystems.androvdr.data.Preferences;
+import de.bjusystems.androvdr.R;
+
+/**
+ * This class is used for showing what's
+ * current running on all channels
+ * @author bju
+ */
+public class VideoActivity extends Activity
+ implements OnClickListener {
+
+ Preferences prefs;
+
+ @Override
+ protected void onCreate(final Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ // Attach view
+ setContentView(R.layout.video);
+
+ // set stream
+ final VideoView videoView = (VideoView) findViewById(R.id.video_video);
+ final MediaController mediaController = new MediaController(this);
+ mediaController.setAnchorView(videoView);
+ final Uri video = Uri.parse("http://192.168.178.20:3000/1");
+ videoView.setMediaController(mediaController);
+ videoView.setVideoURI(video);
+ videoView.start();
+
+ // register button
+ final Button button = (Button) findViewById(R.id.video_button);
+ button.setOnClickListener(this);
+ }
+
+ @Override
+ protected void onResume() {
+ super.onResume();
+ }
+
+ @Override
+ protected void onPause() {
+ super.onPause();
+ }
+
+ public void onClick(final View v) {
+
+ // Save search parameters
+// final EpgSearchParams search = new EpgSearchParams();
+// search.setTitle(text.getText().toString());
+// ((AndroVdrApp)getApplication()).setCurrentSearch(search);
+
+ // show timer details
+// final Intent intent = new Intent();
+// intent.setClass(this, AndroVdrActivity.class);
+// startActivity(intent);
+ }
+}