VideoViewPlayerPoolManager class
Manages native video player recycling, prefetching, and network-adaptive feeds.
- Inheritance
-
- Object
- ChangeNotifier
- VideoViewPlayerPoolManager
Constructors
-
VideoViewPlayerPoolManager({required List<
String> urls}) -
Creates a VideoViewPlayerPoolManager managing the specified feed
urls.
Properties
- effectiveNetworkType → String
-
Effective network type considering active simulated override or real hardware network status.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- networkType → String
-
Real-time detected network connection type (
WIFI,5G,4G,3G, orNONE).no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- simulatedNetworkType ↔ String?
-
Optional network type override for testing adaptive buffer behaviors.
getter/setter pair
-
urls
→ List<
String> -
The complete ordered list of video URLs in the scrolling feed.
final
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → Future< void> -
Disposes all managed player controllers and releases network event subscriptions.
override
-
getControllerForUrl(
String url) → VideoViewPlayerController? -
Retrieves the active controller for a given
url, if assigned in the pool. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
prefetch(
String url, {required int bytes}) → Future< void> -
Triggers background prefetching of the first
bytesof a videourl. -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateActiveIndex(
int currentIndex) → Future< void> -
Updates active controllers based on the current scroll
currentIndex. Instantiates at most 3 controllers, recycling idle controllers using URL swapping rather than disposing and recreating them.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited