| java.lang.Object org.openlaszlo.media.Transcoder
Transcoder | public class Transcoder (Code) | | Simple Media Transcoder
Someday this should get build out.
|
canTranscode | public static boolean canTranscode(String in, String out)(Code) | | true if the transcoder can do the requested transcode Parameters: in - input mime type Parameters: out - output mime type |
guessSupportedMimeTypeFromContent | public static String guessSupportedMimeTypeFromContent(String fileName) throws IOException(Code) | | mime type based on stream |
guessSupportedMimeTypeFromContent | public static String guessSupportedMimeTypeFromContent(InputStream stream) throws IOException(Code) | | mime type based on streamstream must be rewindable or we can't guess |
transcode | public static InputStream transcode(InputStream stream, String from, String to, boolean doStream) throws TranscoderException, IOException(Code) | | Parameters: input - buffer of data to be transcoded, caller is responsiblefor closing this stream someday. Parameters: from - type of input data Parameters: to - type of output data Parameters: doStream - true if transcode should create streaming audio throws: TranscoderException - if there is no transcoder for the request from/to types. |
|
|