Examples of checkThumbnail()


Examples of net.pms.dlna.DLNAResource.checkThumbnail()

        // another error
        LOGGER.debug("media unkonwn");
        throw new IOException("Bad id");
      }
      DLNAResource r = res.get(0);
      r.checkThumbnail();
      Headers hdr = t.getResponseHeaders();
      hdr.add("Content-Type", r.getThumbnailContentType());
      hdr.add("Accept-Ranges", "bytes");
      hdr.add("Connection", "keep-alive");
      InputStream in = r.getThumbnailInputStream();
View Full Code Here

Examples of net.pms.dlna.DLNAResource.checkThumbnail()

          output(output, "Content-Type: " + dlna.getThumbnailContentType());
          output(output, "Accept-Ranges: bytes");
          output(output, "Expires: " + getFUTUREDATE() + " GMT");
          output(output, "Connection: keep-alive");
          if (mediaRenderer.isMediaParserV2()) {
            dlna.checkThumbnail();
          }

          inputStream = dlna.getThumbnailInputStream();
        } else if (dlna.getMedia() != null && fileName.contains("subtitle0000")) {
          // This is a request for a subtitle file
View Full Code Here

Examples of net.pms.dlna.DLNAResource.checkThumbnail()

          output.setHeader(HttpHeaders.Names.ACCEPT_RANGES, "bytes");
          output.setHeader(HttpHeaders.Names.EXPIRES, getFUTUREDATE() + " GMT");
          output.setHeader(HttpHeaders.Names.CONNECTION, "keep-alive");

          if (mediaRenderer.isMediaParserV2()) {
            dlna.checkThumbnail();
          }

          inputStream = dlna.getThumbnailInputStream();
        } else if (fileName.indexOf("subtitle0000") > -1) {
          // This is a request for a subtitle file
View Full Code Here

Examples of net.pms.dlna.DLNAResource.checkThumbnail()

          output(output, "Content-Type: " + dlna.getThumbnailContentType());
          output(output, "Accept-Ranges: bytes");
          output(output, "Expires: " + getFUTUREDATE() + " GMT");
          output(output, "Connection: keep-alive");
          if (mediaRenderer.isMediaParserV2()) {
            dlna.checkThumbnail();
          }
          inputStream = dlna.getThumbnailInputStream();
        } else if (fileName.indexOf("subtitle0000") > -1) {
          // This is a request for a subtitle file
          output(output, "Content-Type: text/plain");
View Full Code Here
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.