init static method
Implementation
static Future<void> init() async {
_methodChannel.setMethodCallHandler((MethodCall call) async {
switch (call.method) {
case 'onCreatePreRenderEngine':
{
TTVideoEngineMediaSource source = TTVideoEngineMediaSource.fromJson(call.arguments);
VodPlayerFlutter player = await onCreatePreRenderEngine!.call(source);
return player.hashCode;
}
}
});
}