Package net.pms.dlna

Examples of net.pms.dlna.Range


      // another error
      LOGGER.debug("media unkonwn");
      throw new IOException("Bad id");
    }
    long len = res.get(0).length();
    Range range = RemoteUtil.parseRange(t.getRequestHeaders(), len);
    String mime = root.getDefaultRenderer().getMimeType(res.get(0).mimeType());
    DLNAResource dlna = res.get(0);
    DLNAMediaInfo m = dlna.getMedia();
    if(mime.equals(FormatConfiguration.MIMETYPE_AUTO) && m != null && m.getMimeType() != null) {
      mime = m.getMimeType();
View Full Code Here


      throw new IOException("Bad id");
    }
    DLNAResource dlna = res.get(0);
    long len = dlna.length();
    dlna.setPlayer(null);
    Range range = RemoteUtil.parseRange(t.getRequestHeaders(), len);
    Range.Byte rb = range.asByteRange();
    InputStream in = dlna.getInputStream(range, root.getDefaultRenderer());
    String mime = root.getDefaultRenderer().getMimeType(dlna.mimeType());
    Headers hdr = t.getResponseHeaders();
    LOGGER.debug("dumping media " + mime + " " + dlna);
    hdr.add("Content-Type", mime);
View Full Code Here

TOP

Related Classes of net.pms.dlna.Range

Copyright © 2018 www.massapicom. 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.