BccmPlayerInterface class abstract

Inheritance
  • Object
  • PlatformInterface
  • BccmPlayerInterface
Implementers

Constructors

BccmPlayerInterface()
Constructs a PlaybackServiceInterface.

Properties

chromecastEventStream Stream<ChromecastEvent>
no setter
hashCode int
The hash code for this object.
no setterinherited
playerEventStream Stream
no setter
primaryController BccmPlayerController
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateNotifier PlayerPluginStateNotifier
final

Methods

addPlaybackListener(PlaybackListenerPigeon listener) Future<void>
disposePlayer(String playerId) Future<void>
enterFullscreen(String playerId) Future<void>
exitFullscreen(String playerId) → void
getChromecastState() Future<ChromecastState?>
getPlayerState({String? playerId}) Future<PlayerStateSnapshot?>
If playerId is null, this returns the primary player's state.
getPlayerTracks({String? playerId}) Future<PlayerTracksSnapshot?>
If playerId is null, this returns the primary player's state.
newPlayer({String? url}) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openCastDialog() → void
openExpandedCastController() → void
pause(String playerId) → void
play(String playerId) → void
queueMediaItem(String playerId, MediaItem mediaItem) Future<void>
removePlaybackListener(PlaybackListenerPigeon listener) Future<void>
replaceCurrentMediaItem(String playerId, MediaItem mediaItem, {bool? playbackPositionFromPrimary, bool? autoplay = true}) Future<void>
seekTo(String playerId, double positionMs) Future<void>
setAppConfig(AppConfig? config) → void
setMixWithOthers(String playerId, bool mixWithOthers) Future<void>
setNpawConfig(NpawConfig? config) Future?
setPlaybackSpeed(String playerId, double speed) Future<void>
setPlayerViewVisibility(int viewId, bool visible) → void
setPrimary(String id) Future<bool>
setSelectedTrack(String playerId, TrackType type, String? trackId) Future<void>
setup() Future<void>
MUST be run first
setVolume(String playerId, double volume) Future<void>
stop(String playerId, bool reset) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance BccmPlayerInterface
Platform-specific implementations should set this with their own platform-specific class that extends BccmPlayerInterface when they register themselves.
getter/setter pair
playerHtmlElement Object?
getter/setter pair