process method

void process(
  1. String methodName,
  2. List data
)

Implementation

void process(String methodName, List<dynamic> data) {
  switch (methodName) {
    case 'PlayerStateChanged':
      playerStateChangedCallBack?.call(MediaPlayerStateConverter.fromValue(data[0]).e,MediaPlayerErrorConverter.fromValue(data[1]).e);
      break;
    case 'PositionChanged':
      positionChangedCallBack?.call(data[0]);
      break;
    case 'PlayerEvent':
      playerEventCallBack?.call(PlayerEventConverter.fromValue(data[0]).e);
      break;
    case 'MetaData':
      // playerEventCallBack?.call();
      break;
  }
}