Permalink
Browse files

Digital Signage (MediaWSDemo) added

Support for avi, mp4 and m4v files
  • Loading branch information...
mgrundy
mgrundy committed Sep 27, 2011
1 parent b81c352 commit 8b802a89b968dddb320a467ee664ea30be9b73d9
View
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path=""/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="con" path="com.buglabs.dragonfly.jdt.BugClasspathContainerInitializer"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
View
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>MediaWSDemo</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.buglabs.dragonfly.BugApplicationNature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,7 @@
+#Fri May 20 15:58:33 EDT 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.6
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bug-Bundle-Type: Application
+Bundle-Vendor: vish
+Bundle-Version: 1.0.0
+BUG-API-Version: 2.0.2
+Bundle-Name: MediaWSDemo
+Bundle-Activator: mediawsdemo.Activator
+Bundle-ManifestVersion: 2
+Bundle-Description: Creates a MediaPlayer webservice to control select
+ ion of video being displayed out BUGview or BUGvideo
+Import-Package: com.buglabs.application,com.buglabs.bug.module.video.p
+ ub,com.buglabs.device,com.buglabs.services.ws,com.buglabs.util,org.os
+ gi.framework,org.osgi.service.log,org.osgi.util.tracker
+Bundle-SymbolicName: MediaWSDemo
+
@@ -0,0 +1,52 @@
+/**
+ * Generated by Dragonfly SDK.
+ */
+package mediawsdemo;
+
+
+import com.buglabs.device.IButtonEventProvider;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.util.tracker.ServiceTracker;
+
+import com.buglabs.application.ServiceTrackerHelper;
+import com.buglabs.bug.module.video.pub.IVideoModuleControl;
+
+
+/**
+ * BundleActivator for MediaWSDemo. The OSGi entry point to the application.
+ *
+ */
+public class Activator implements BundleActivator {
+ /**
+ * OSGi services the application depends on.
+ */
+ private static final String [] services = {
+ IButtonEventProvider.class.getName(),
+ IVideoModuleControl.class.getName(),
+ };
+ private ServiceTracker serviceTracker;
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ //Begin tracking services, and when all services are available, create thread and call ManagedRunnable.run().
+ serviceTracker = ServiceTrackerHelper.openServiceTracker(context, services, new MediaWSDemoApplication(context));
+
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+
+ //Will cause the ManagedRunnable.shutdown() to be called.
+ serviceTracker.close();
+ }
+
+
+}
Oops, something went wrong.

0 comments on commit 8b802a8

Please sign in to comment.