Patent ID: 8010692

Claim:
A computer-implemented method comprising: receiving, in an electronic device, a single stream that is synchronously forwarded from a runtime engine of an application and that comprises at least first and second types of data, the single stream having a format associated with the runtime engine; generating a first type data stream and a second type data stream from the single stream; generating converted data streams from the first and second type data streams by changing the format to a standard-compliant format according to a standard with which at least one hardware decoder in the electronic device complies; determining that the hardware decoder is available to decode the converted data streams, wherein the determination is based at least in part on one or more notifications of asynchronous hardware decoder events; upon the determination, asynchronously forwarding the converted data streams to the hardware decoder; generating, by the hardware decoder, at least one decoded data stream from the modified data streams; and generating an output from the decoded data stream.