universal_video_controls/src/controls/methods/video_state library

This file is a part of media_kit (https://github.com/media-kit/media-kit).

Copyright © 2021 & onwards, Hitesh Kumar Saini saini123hitesh@gmail.com. All rights reserved. Use of this source code is governed by MIT license that can be found in the LICENSE file.

Functions

contextNotifier(BuildContext context) → DisposeSafeNotifier<BuildContext?>
Returns the ValueNotifier<BuildContext> associated with the VideoControls present in the current BuildContext.
onEnterFullscreen(BuildContext context) Future<void> Function()?
Returns the callback which must be invoked when the video enters fullscreen mode.
onExitFullscreen(BuildContext context) Future<void> Function()?
Returns the callback which must be invoked when the video exits fullscreen mode.
player(BuildContext context) AbstractPlayer
Returns the AbstractPlayer associated with the VideoControls present in the current BuildContext.
state(BuildContext context) VideoControlsState
Returns the VideoControlsState associated with the VideoControls present in the current BuildContext.
videoViewParametersNotifier(BuildContext context) ValueNotifier<VideoViewParameters>
Returns the ValueNotifier<VideoViewParameters> associated with the VideoControls present in the current BuildContext.