kinetic_player library
Classes
- ArtplayerConstants
- Web / Artplayer view type and channel helpers.
- ArtplayerPluginKeys
- Known ArtplayerUiConfig.artPlugins keys bundled in kinetic_player Web.
- ArtplayerUiConfig
- Web-only Artplayer configuration extensions.
- ArtplayerVideoControllerImpl
- Stub for non-web platforms. Real implementation is conditionally imported.
- 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/macOS → SGPlayer, Web → Artplayer, Windows/Linux → libmpv.
- CommonVideoPlayerView
- Unified player surface: Android → GSY, iOS/macOS → SGPlayer, Web → Artplayer, Windows/Linux → libmpv.
- 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 plays only while coordinator marks it active.
- GsyAutoPlayVideoList
- Vertical feed with list-level visibility auto-play (Android GSY pattern).
- GsyNetSpeed
- Network speed sample from GSY.
- GSYVideoControllerImpl
- KineticChromeStrings
-
Chrome copy for native / web players. Keys match Android
strings.xml. - KineticHttpRequestOptions
- Custom HTTP request headers and User-Agent for media loading.
- KineticUiConfig
- Shared player chrome options for CommonVideoPlayerView.creationParams.
- MpvChannelNames
- libmpv-only APIs live on MpvVideoControllerImpl; keep them off CommonVideoController.
- MpvNetSpeed
-
Network speed sample from libmpv
cache-speed(same shape as GSY). - MpvVideoControllerImpl
- MpvVideoTrack
-
One selectable video track from libmpv
track-list. - 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
Constants
- kKineticDefaultAccentColor → const int
- Default chrome accent (Bilibili pink).
Functions
-
assertAndroidPlatform(
String feature) → void - Throws when the current platform is not TargetPlatform.android.
-
assertAppleSgPlatform(
String feature) → void - Throws when the current platform is not Apple SGPlayer (iOS / macOS).
-
assertDesktopMpvPlatform(
String feature) → void - Throws when the current platform is not Windows / Linux libmpv.
-
assertIosPlatform(
String feature) → void - Throws when the current platform is not TargetPlatform.iOS.
-
assertSupportedMobilePlatform(
) → void - @deprecated Use assertSupportedPlayerPlatform.
-
assertSupportedPlayerPlatform(
) → void - Throws when the current platform is not a supported player platform.
-
assertWebPlatform(
String feature) → void - Throws when the current platform is not Flutter Web.
Typedefs
- CommonVideoPlayerViewCreatedCallback = void Function(CommonVideoController controller)
- GsyEffectFilterName = String
- Built-in GSY GL filter names (see GSYVideoControllerImpl.gsyListEffectFilters).