prepare method

Future<void> prepare(
  1. int playerId
)

Prepares the player for playback (two-phase initialization).

This method starts the asynchronous preparation for playback. It must be called after create() and after setting up event listeners to ensure the initialized event is not missed.

For platforms that don't support two-phase initialization, this method is a no-op.

Implementation

Future<void> prepare(int playerId) async {}