Retrieves the next output ASF packet from the multiplexer.
HRESULT GetNextPacket( DWORD *pdwStatusFlags, IMFSample **ppIPacket );
Receives zero or more status flags. If more than one packet is waiting, the method sets the ASF_STATUSFLAGS_INCOMPLETE flag.
Receives a pointer to the IMFSample interface of the first output sample of the data packet. The caller must release the interface.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
||The method succeeded.|
The client needs to call this method, ideally after every call to IMFASFMultiplexer::ProcessSample, to get the output ASF packets. Call this method in a loop as long as the ASF_STATUSFLAGS_INCOMPLETE flag is received.
If no packets are ready, the method returns S_OK but does not return a sample in ppIPacket.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|