readPacket

abstract suspend fun readPacket(): PlayerPacket?

Reads the next packet from any selected stream.

Return

the packet, or null at the end of the media. The engine turns that null into the in-band drain signal each decoder needs.