BccmPlayerNative class
An implementation of BccmPlayerPlatform
that uses pigeon.
- Inheritance
-
- Object
- PlatformInterface
- BccmPlayerInterface
- BccmPlayerNative
Constructors
Properties
-
chromecastEventStream
→ Stream<
ChromecastEvent> -
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- playerEventStream → Stream
-
no setteroverride
- primaryController → BccmPlayerController
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
setupFuture
↔ Future<
void> ? -
getter/setter pair
- stateNotifier → PlayerPluginStateNotifier
-
finalinherited
Methods
-
addPlaybackListener(
PlaybackListenerPigeon listener) → Future< void> -
override
-
dispose(
) → void - This class is currently long lived so dispose is not used
-
disposePlayer(
String playerId) → Future< void> -
override
-
enterFullscreen(
String playerId) → Future< void> -
override
-
exitFullscreen(
String playerId) → void -
override
-
getChromecastState(
) → Future< ChromecastState?> -
override
-
getPlayerState(
{String? playerId}) → Future< PlayerStateSnapshot?> -
If
playerId
is null, this returns the primary player's state.override -
getPlayerTracks(
{String? playerId}) → Future< PlayerTracksSnapshot?> -
If
playerId
is null, this returns the primary player's state.override -
newPlayer(
{String? url}) → Future< String> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openCastDialog(
) → void -
override
-
openExpandedCastController(
) → void -
override
-
pause(
String playerId) → void -
override
-
play(
String playerId) → void -
override
-
queueMediaItem(
String playerId, MediaItem mediaItem) → Future< void> -
override
-
removePlaybackListener(
PlaybackListenerPigeon listener) → Future< void> -
inherited
-
replaceCurrentMediaItem(
String playerId, MediaItem mediaItem, {bool? playbackPositionFromPrimary, bool? autoplay = true}) → Future< void> -
override
-
seekTo(
String playerId, double positionMs) → Future< void> -
override
-
setAppConfig(
AppConfig? config) → void -
override
-
setMixWithOthers(
String playerId, bool mixWithOthers) → Future< void> -
override
-
setNpawConfig(
NpawConfig? config) → Future -
override
-
setPlaybackSpeed(
String playerId, double speed) → Future< void> -
override
-
setPlayerViewVisibility(
int viewId, bool visible) → void -
override
-
setPrimary(
String id) → Future< bool> -
override
-
setSelectedTrack(
String playerId, TrackType type, String? trackId) → Future< void> -
override
-
setup(
) → Future< void> -
MUST be run first
override
-
setVolume(
String playerId, double volume) → Future< void> -
override
-
stop(
String playerId, bool reset) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited