ShortsPlayerPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- ShortsPlayerPlatform
- Implementers
Constructors
- ShortsPlayerPlatform()
- Constructs a ShortsPlayerPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
appendUrls(
int startIndex, List< String> urls) → Future<void> - Append multiple URLs starting at a given index
-
attach(
int index) → Future< int> - Attach texture to a player index and return texture ID
-
diagnoseVideoState(
int index) → Future< void> - Diagnose video state for debugging (outputs to native logs)
-
disposeIndex(
int index) → Future< void> - Dispose a specific player index
-
getPlatformVersion(
) → Future< String?> -
getPlaybackInfo(
int index) → Future< Map< String, dynamic> ?> - Get playback information for a specific player index
-
init(
) → Future< void> - Initialize the player pool
-
isPaused(
) → Future< bool> - Check if the current player is paused
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future< void> - Pause the current active player
-
play(
) → Future< void> - Play the current active player
-
prewarm(
{int? next, int? prev}) → Future< void> - Prewarm next and/or previous players
-
prime(
int index) → Future< void> - Prime (prepare) a player at the given index
-
release(
) → Future< void> - Release all players and resources
-
setLooping(
bool enabled) → Future< void> - Enable or disable video looping
-
setMuted(
bool enabled) → Future< void> - Enable or disable mute
-
setProgressTracking(
{bool enabled = true, int? intervalMs}) → Future< void> - Configure progress tracking
-
setQuality(
{double? peakBps, double? maxWidth, double? maxHeight}) → Future< void> - Set video quality preferences
-
setUrl(
int index, String url, {String? thumbnailUrl}) → Future< void> - Set video URL for a specific player index
-
setVolume(
double volume) → Future< void> - Set playback volume (0.0 to 1.0)
-
switchTo(
int index) → Future< void> - Switch to and play a specific player index
-
togglePlayPause(
) → Future< void> - Toggle play/pause state
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ ShortsPlayerPlatform
-
The default instance of ShortsPlayerPlatform to use.
getter/setter pair