Skip to content

@capgo/capacitor-mux-player

Play adaptive bitrate Mux streams in a native player surface from your Capacitor app.

Pass a Mux playback ID or signed URL to play() and let the native Mux player handle ABR streaming, DRM tokens when required, and dismissal when the user closes the player. Use isActive() to avoid opening duplicate player instances.

Typical fits: course video, sports highlights, and any premium video that already lives on Mux.

PlatformSupportNotes
iOSYesNative Mux player integration
AndroidYesNative Mux player integration
WebSee repoUse Mux web player for browser targets
  • play - Launch the native Mux Player in fullscreen and begin playback.
  • dismiss - Dismiss the player if it is visible.
  • isActive - Returns whether the player is currently being displayed.
MethodDescription
playLaunch the native Mux Player in fullscreen and begin playback.
dismissDismiss the player if it is visible.
isActiveReturns whether the player is currently being displayed.
removeAllListenersRemove all event listeners registered on the plugin instance.
addListenerListen to player lifecycle or playback events emitted by the plugin.

This reference is synced from src/definitions.ts in capacitor-mux-player.

Keep going from @capgo/capacitor-mux-player

Section titled “Keep going from @capgo/capacitor-mux-player”

If you are using @capgo/capacitor-mux-player to plan native media and interface behavior, connect it with Using @capgo/capacitor-mux-player for the native capability in Using @capgo/capacitor-mux-player, Using @capgo/capacitor-live-activities for the native capability in Using @capgo/capacitor-live-activities, @capgo/capacitor-live-activities for the implementation detail in @capgo/capacitor-live-activities, Using @capgo/capacitor-video-player for the native capability in Using @capgo/capacitor-video-player, and @capgo/capacitor-video-player for the implementation detail in @capgo/capacitor-video-player.