public void doGetEmbedHtml(HttpServletRequest request,HttpServletResponse response,String type,String location,String item) throws ServletException, IOException {
  response.setStatus(HttpServletResponse.SC_OK);
  response.setContentType("text/html");
  PrintWriter writer=response.getWriter();
  String path="/console/browse/media/" + type + "/"+ location+ "/"+ item;
  writer.print("<OBJECT ID='MediaPlayer' WIDTH='320' HEIGHT='26'");
  writer.println(" CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'");
  writer.println(" STANDBY='Loading...' TYPE='application/x-oleobject'>");
  writer.printf("  <PARAM NAME='FileName' VALUE='%s'>%n",path);
  writer.printf("  <EMBED TYPE='application/x-mplayer2' SRC='%s' NAME='MediaPlayer' WIDTH='320' HEIGHT='26' autostart='1'></EMBED>%n",path);
  writer.println("</OBJECT>");
}

public void doGetEmbedHtml ( HttpServletRequest request , HttpServletResponse response , String type , String location , String item ) throws ServletException , IOException { response . setStatus ( HttpServletResponse . SC_OK ) ; response . setContentType ( "text/html" ) ; PrintWriter writer = response . getWriter ( ) ; String path = "/console/browse/media/" + type + "/" + location + "/" + item ; writer . print ( "<OBJECT ID='MediaPlayer' WIDTH='320' HEIGHT='26'" ) ; writer . println ( " CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'" ) ; writer . println ( " STANDBY='Loading...' TYPE='application/x-oleobject'>" ) ; writer . printf ( "  <PARAM NAME='FileName' VALUE='%s'>%n" , path ) ; writer . printf ( "  <EMBED TYPE='application/x-mplayer2' SRC='%s' NAME='MediaPlayer' WIDTH='320' HEIGHT='26' autostart='1'></EMBED>%n" , path ) ; writer . println ( "</OBJECT>" ) ; }
get the html snippet for embedding the media content in a way suitable for the browser to view the content as
