kinetic_player library
Classes
- CommonAudioTrack
- Describes one selectable audio track exposed by the native player.
- CommonVideoController
- Pure unified controller contract. Player-specific APIs live on concrete implementations and must be accessed via explicit downcasting.
- CommonVideoPlayerFactory
- Platform-safe factory: Android → GSY, iOS → SGPlayer.
- CommonVideoPlayerView
- Unified player surface: Android → GSY, iOS → SGPlayer master.
- CommonVideoPlayerViewBuilder
- Wires CommonVideoPlayerFactory.createAuto to platform view lifecycle.
- CommonVideoSize
- Native video frame dimensions in pixels.
- GsyAutoPlayCoordinator
- Coordinates which cell in a scrollable list should be playing.
- GsyAutoPlayVideoCell
- List item that auto-plays when mostly visible (GSY list auto-play pattern).
- GsyAutoPlayVideoList
- Vertical feed list with scroll-based auto play (Android GSY).
- GsyNetSpeed
- Network speed sample from GSY.
- GsyUiConfig
- Native UI options passed via CommonVideoPlayerView.creationParams.
- GSYVideoControllerImpl
- NativeSdkVersions
- Pinned native SDK versions for the dual-core player plugin.
- PlayerViewTypes
- Native PlatformView type identifiers registered per platform.
- SgBackgroundPlaybackPolicy
- Background / audio-interrupt policy (SGPlayer iOS).
- SgDemuxerOptions
-
FFmpeg demuxer /
avformat_open_inputoptions applied on next source load. - SgMediaSegment
-
One segment in an
SGMutableAsset-style playlist. - SGVideoControllerImpl
- SgVrViewport
- VR viewport parameters (maps to SGVRViewport).
Enums
- CommonPlayerState
- Unified player lifecycle states shared by GSY and SG backends.
- CommonScaleMode
- Unified video scaling / render mode for both player cores.
- GsyRenderCore
- Render core: 0=IJK, 1=Exo/Media3, 2=System MediaPlayer.
- GsyRenderType
- GSY render surface type. GL filters require glSurface.
- GsyShowType
-
GSY extended show types (maps to
GSYVideoTypeon Android). - SgDisplayMode
- SGPlayer display / VR modes.
Extensions
- CommonScaleModeGsy on CommonScaleMode
- Maps CommonScaleMode to GSY show type indices.
- GsyRenderCoreIndex on GsyRenderCore
- GsyRenderTypeIndex on GsyRenderType
- GsyShowTypeIndex on GsyShowType
Functions
-
assertAndroidPlatform(
String feature) → void - Throws when the current platform is not TargetPlatform.android.
-
assertIosPlatform(
String feature) → void - Throws when the current platform is not TargetPlatform.iOS.
-
assertSupportedMobilePlatform(
) → void - Throws when the current platform is neither Android nor iOS.
-
gsySeamlessHandoffParams(
{required int viewId, String? url, Map< String, dynamic> ? extra}) → Map<String, dynamic> -
Keeps the same
playTagwhen navigating to a detail page for seamless playback.
Typedefs
- CommonVideoPlayerViewCreatedCallback = void Function(CommonVideoController controller)
- GsyEffectFilterName = String
- Built-in GSY GL filter names (see GSYVideoControllerImpl.gsyListEffectFilters).