init method
Create a new instance with token and the specified config.
Implementation
Future<int> init(
token, {
required P2pConfig config,
void Function(Map<String, dynamic>)? infoListener,
bool bufferedDurationGeneratorEnable = false, // 是否可以给SDK提供缓冲前沿到当前播放时间的差值
}) =>
_instance.init(
token,
config: config,
infoListener: infoListener,
bufferedDurationGeneratorEnable: bufferedDurationGeneratorEnable,
);