Subscribe to News

MS Device

Author : Osami-uc3m

From TechnologicalWiki

Jump to: navigation, search

Contents

Meta information

[edit] Unique service name

UPnPMS

[edit] Partners

Responsible Partner: University Carlos III of Madrid

[edit] Short description

This bundle provides media contents to the residential network through of the UPnP protocol.


[edit] Description of service (semantically)

A UPnP Media Server device (MS) stores media contents and publishes them on the residential network. When a UPnP MS is connected, It announces its presence to other UPnP devices. The UPnP Control Point devices detect to the MS and request the contents contained on the MS. After the MS makes the list of contents and sends it to the UPnP CP. When a user selects a content in the GUI of the CP, the CP to order to the UPnP Media Renderer device plays the selected content.

[edit] Implementations available and/or expected

The Bundle Signing Service will be available into OSAmI Repository

[edit] Technical

N/A

[edit] Service Interface

Package: org.uc3m.MediaServer

/** 
 *  This interface provides the methods necessary to other bundles to use the capabilities provided by the media server
 * @author UC3M 
 * @version 1.0
 */
public interface MediaServerOsgi {
	/** 
	  *  This function gets a instance of Mediagate
	  * @return mediagate
	  * @throws
	  */
	public MediaGate getMediaGate();
	/** 
	  *  This function registers a camera in the Media Server.Thus, the Media Server 
	  *  can provide images from camera
	  * @param camera It is the camera connected to the PC
	  * @return int  If the camera works, then it return 1 if not 0 
	  */
	public int registerCameraServer (Camera camera);
	/** 
	  * This function unregisters a camera connected to Media Server
	  * @param camera It is the camera connected to the PC
	  * @return 0	
	  */
	public int unregisterCameraServer (String idCamera);
	/** 
	  *  This function adds the content called alias in the indicated directory 
	  * @param alias  	name of the content
	  * @param directory	directory to store the content
	  * @return 0	if the operation was successfully, if not return -1
	  */
	public int addContent (String alias, String directory);
	/** 
	  *  This function removes the content of the list of the Media Server
	  * @param alias  It's the name of the content 
	  * @return 0  If the content has been added successfully, if not -1
	  */
	public int removeContent (String alias);
	/** 
	  *  It retrieves the contents published by Media Server
      * @return vector	It returns a vector with the contents published
	  */
	public Content [] getAllPublishedContent ();
	/** 
	  *  This function retrieves the contents called alias 
	  * @param alias  It's the name of the contents 
	  * @return vector	It returns a vector with the contents published
	  */
	public Content [] getPublishedContent (String alias);
}

[edit] Service dependencies

GenericCPDev 1.0.0

[edit] OSGi Platforms supported

  • Theoretically: all OSGI platforms
  • Developed and tested with: Equinox 3.4

[edit] Additional Information

[edit] Version / History

1.0

[edit] License

GPL License, Version 3.0

[edit] Bundles

Bundle Repository: http://repository.osami-commons.org/

  • MediaServerBundle_1.0.0.jar

[edit] Source Code

Host: https://forja.rediris.es/plugins/scmsvn/viewcvs.php/MediaServerBundle/?root=osami

Proyect: OSAmI

Section: ficheros (files)

Main Collaborators