putPlayer

fun putPlayer(media: Media, player: PLAYER): Boolean

Release an unused PLAYER to the pool. If the pool is already full, this method must destroy the PLAYER instance. Return true if the instance is successfully put back to the pool, or false otherwise.

Return

true if the instance is successfully put back to the pool, or false otherwise.

Parameters

media

The Media object.

player

The PLAYER to be put back to the pool.