Clear singleton reference during JetPlayer.release()
Only one JetPlayer instance is supported at a time. A singleton reference is created and returned in JetPlayer.getInstance(). When calling release() on the instance, the corresponding native player is finalized. Therefore, release() must also clear the singleton reference, so that any subsequent call to getInstance() re-initializes the native player.
Loading
Please register or sign in to comment