initialize method
Load the media. Resolves once the codec is configured and metadata (size, duration) is known. Throws XVideoPlayerException("decode_failed") if the file can't be opened or the codec init failed permanently.
Implementation
@override
Future<XVideoPlayerMetadata> initialize(int handle) async {
initializeCalls.add(handle);
if (initializeError != null) throw initializeError!;
return XVideoPlayerMetadata(
size: size,
duration: duration,
rotationQuarterTurns: rotationQuarterTurns,
);
}