Package org.matt1.climediarenderer.services

Source Code of org.matt1.climediarenderer.services.CliMRConnectionManagerService

package org.matt1.climediarenderer.services;

import org.fourthline.cling.support.connectionmanager.ConnectionManagerService;
import org.fourthline.cling.support.model.ProtocolInfo;
import org.fourthline.cling.support.model.ProtocolInfos;

/**
* Simple ConnectionManager service.  Basically doesn't do anything significant apart from
* provide media protocol information.
*
* @author Matt
*
*/
public class CliMRConnectionManagerService extends ConnectionManagerService {

    /**
     * Basic MP3 support only for now...
     */
    public CliMRConnectionManagerService() {
        sinkProtocolInfo.add(new ProtocolInfo("http-get:*:audio/mp3:*"));
        sinkProtocolInfo.add(new ProtocolInfo("http-get:*:audio/mpeg:*"));
      sinkProtocolInfo.add(new ProtocolInfo("http-get:*:audio/mpeg3:*"));
      sinkProtocolInfo.add(new ProtocolInfo("http-get:*:audio/flac:*"));
      sinkProtocolInfo.add(new ProtocolInfo("http-get:*:audio/ogg:*"));
      sinkProtocolInfo.add(new ProtocolInfo("http-get:*:audio/mp4a-latm:*"));
        sinkProtocolInfo.add(new ProtocolInfo("http-get:*:audio/mp4:*"));
      sinkProtocolInfo.add(new ProtocolInfo("http-get:*:audio/x-aiff:*"));
    }
   
    public ProtocolInfos getSinkProtocolInfo() {
      return super.getSinkProtocolInfo();
    }

}
TOP

Related Classes of org.matt1.climediarenderer.services.CliMRConnectionManagerService

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.