initPlayer method
void
initPlayer()
Initialize the player for the first time. This is will init the method channels and event channels that are necessary for the player to work in a reactive manner. You Only need to call this method once.
Implementation
void initPlayer() {
if (kDebugMode) {
print("Initialized Event Channels: Started");
}
_eventStream ??=
_eventChannel.receiveBroadcastStream().map<String?>((event) => event);
if (kDebugMode) {
print("Initialized Event Channels: Completed");
}
}