useAsImplementation static method
Sets up OmxplayerViewPlayer
as the VideoPlayerPlatform.instance
,
i.e. the backend to be used for video playback.
When strictViewBehaviour
is true
, all views of a player instance will be given
GlobalObjectKeys
s to ensure that at most a single video view for a player instance
is mounted in the widget tree at a time.
When strictViewBehaviour
is false
, will try to work around that issue and
only actually build the platform view for the last-recently registered element.
Implementation
static void useAsImplementation({bool strictViewBehaviour = false}) {
VideoPlayerPlatform.instance = OmxplayerVideoPlayer._(strictViewBehaviour);
}