Public Member Functions | |
PRInt32 | transcode (in AString aInputURL, in sbIMediaType aInputMIMEType, in AString aOutputURL, in sbIMediaType aOutputMIMEType, in sbIMediaTranscoderCallback aCallback) |
Start a transcode operation. | |
void | getSupportedInputMediaTypes (out PRUint32 nInputCount,[array, size_is(nInputCount), retval] out sbIMediaType aInputTypes) |
Get the list of all supported input types. | |
void | getSupportedOutputMediaTypes (out PRUint32 nOutputCount,[array, size_is(nOutputCount), retval] out sbIMediaType aOutputTypes) |
Get the list of all supported output types. |
This service is retrieved by user code that calls its transcode() method.
This code is responsible for iterating through all available sbIMediaTranscoder instances, finding one that supports the requested transcode operation, and calling its sbIMediaTranscoder::transcode() method.
Definition at line 250 of file sbIMediaTranscoder.idl.
void sbIMediaTranscoderManager::getSupportedInputMediaTypes | ( | out PRUint32 | nInputCount, | |
[array, size_is(nInputCount), retval] out sbIMediaType | aInputTypes | |||
) |
Get the list of all supported input types.
This method returns a concatenation of all the types it supports
nInputCount | The number of items in the array | |
aInputTypes | The array of types |
void sbIMediaTranscoderManager::getSupportedOutputMediaTypes | ( | out PRUint32 | nOutputCount, | |
[array, size_is(nOutputCount), retval] out sbIMediaType | aOutputTypes | |||
) |
Get the list of all supported output types.
This method returns a concatenation of all the types it supports.
nOutputCount | The number of items in the array | |
aOutputTypes | The array of types |
PRInt32 sbIMediaTranscoderManager::transcode | ( | in AString | aInputURL, | |
in sbIMediaType | aInputMIMEType, | |||
in AString | aOutputURL, | |||
in sbIMediaType | aOutputMIMEType, | |||
in sbIMediaTranscoderCallback | aCallback | |||
) |
Start a transcode operation.
This code is responsible for iterating through all available sbIMediaTranscoder instances, finding one that supports the requested transcode operation, and calling its sbIMediaTranscoder::transcode() method.
aInputURL | The url to the input file | |
aInputType | The type of the input file | |
aOutputURL | The url to the output file | |
aOutputType | The type for the output file | |
aCallback | The optional callback object to observe the transcoding |