VesperMethodChannelPlatformBase class abstract

Inheritance

Constructors

VesperMethodChannelPlatformBase({required MethodChannel methodChannel, required EventChannel eventChannel, required EventChannel downloadEventChannel, required EventChannel sequenceEventChannel})

Properties

downloadEventChannel → EventChannel
final
eventChannel → EventChannel
final
hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sequenceEventChannel → EventChannel
final

Methods

activateSource(String playerId, VesperSourceReference source, VesperSourceActivationOptions options) → Future<VesperSourceActivation>
override
awaitSourcePreload(String sessionId, String taskId) → Future<VesperSourcePreloadSnapshot>
override
cancelSourcePreload(String sessionId, String taskId) → Future<void>
override
clearSystemPlayback(String playerId) → Future<void>
override
clearViewport(String playerId) → Future<void>
override
configureSystemPlayback(String playerId, VesperSystemPlaybackConfiguration configuration) → Future<void>
override
createDownloadManager({VesperDownloadConfiguration configuration = const VesperDownloadConfiguration(), VesperDownloadStaleResourcePlanRecoveryCallback? staleResourceRecovery}) → Future<VesperPlatformDownloadCreateResult>
override
createDownloadTask(String downloadId, {required String assetId, required VesperDownloadSource source, VesperDownloadProfile profile = const VesperDownloadProfile(), VesperDownloadAssetIndex assetIndex = const VesperDownloadAssetIndex()}) → Future<int?>
override
createPlaybackSequence(String playerId, VesperPlaybackSequenceConfiguration configuration) → Future<VesperPlaybackSequenceSnapshot>
Creates the bounded native sequence session attached to one controller. Platform implementations must keep source bytes and headers on the host.
override
createPlayer({VesperPlayerSource? initialSource, VesperPlayerRenderSurfaceKind renderSurfaceKind = VesperPlayerRenderSurfaceKind.auto, VesperPlaybackResiliencePolicy resiliencePolicy = const VesperPlaybackResiliencePolicy(), VesperTrackPreferencePolicy trackPreferencePolicy = const VesperTrackPreferencePolicy(), VesperPreloadBudgetPolicy preloadBudgetPolicy = const VesperPreloadBudgetPolicy(), bool keepScreenOnDuringPlayback = true, VesperBenchmarkConfiguration benchmarkConfiguration = const VesperBenchmarkConfiguration.disabled(), VesperSourceNormalizerConfiguration sourceNormalizerConfiguration = const VesperSourceNormalizerConfiguration(), VesperFrameProcessorConfiguration frameProcessorConfiguration = const VesperFrameProcessorConfiguration(), VesperNativeFramePipelineConfiguration nativeFramePipelineConfiguration = const VesperNativeFramePipelineConfiguration(), VesperPipelineEventHookConfiguration pipelineEventHookConfiguration = const VesperPipelineEventHookConfiguration()}) → Future<VesperPlatformCreateResult>
override
createSourceSession(VesperSourceSessionConfiguration configuration) → Future<String>
override
dispose(String playerId) → Future<void>
override
disposeDownloadManager(String downloadId) → Future<void>
override
disposePlaybackSequence(String sequenceId) → Future<void>
override
disposeSourceSession(String sessionId) → Future<void>
override
downloadEventsFor(String downloadId) → Stream<VesperDownloadManagerEvent>
override
eventsFor(String playerId) → Stream<VesperPlayerEvent>
override
executePlaybackSequenceCommand(String sequenceId, Map<String, Object?> command) → Future<Map<String, Object?>>
override
exitPictureInPicture(String playerId) → Future<void>
override
exportDownloadTask(String downloadId, int taskId, String outputPath) → Future<void>
override
getSystemPlaybackPermissionStatus() → Future<VesperSystemPlaybackPermissionStatus>
override
initialize(String playerId) → Future<void>
override
invalidateSourceSession(String sessionId) → Future<void>
override
isPictureInPictureAvailable(String playerId) → Future<VesperPictureInPictureAvailability>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause(String playerId) → Future<void>
override
pauseDownloadTask(String downloadId, int taskId) → Future<bool>
override
performanceDiagnosticsSnapshot(String playerId, String runId) → Future<VesperPerformanceDiagnosticsReport>
override
play(String playerId) → Future<void>
override
playbackSequenceEventsFor(String sequenceId) → Stream<VesperPlaybackSequenceEvent>
override
playbackSequenceSnapshot(String sequenceId) → Future<VesperPlaybackSequenceSnapshot>
override
preloadSource(VesperSourceReference source, VesperSourcePreloadOptions options) → Future<VesperSourcePreloadSnapshot>
override
probeAudioDecoderCapability(VesperAudioDecoderCapabilityRequest request) → Future<VesperAudioDecoderCapabilityResult>
override
probePlaybackCapability(VesperPlaybackCapabilityProbeRequest request, {String? playerId}) → Future<VesperPlaybackCapabilityProbeResult>
override
recordPerformanceMarker(String playerId, String runId, String name, {double? value, int? sequenceIndex, bool? expectedOverlayActive}) → Future<void>
override
refreshDownloadManager(String downloadId) → Future<void>
override
refreshPlayer(String playerId) → Future<void>
override
registerSource(String sessionId, VesperPlayerSource source, {int? expiresAtEpochMs}) → Future<VesperSourceReference>
override
releaseSource(VesperSourceReference source) → Future<void>
override
removeDownloadTask(String downloadId, int taskId) → Future<bool>
override
requestPictureInPicture(String playerId, {VesperPictureInPictureConfiguration? configuration}) → Future<void>
override
requestSystemPlaybackPermissions() → Future<VesperSystemPlaybackPermissionStatus>
override
resumeDownloadTask(String downloadId, int taskId) → Future<bool>
override
sampleTimeline(String playerId) → Future<VesperTimeline?>
Samples the current playback timeline without requiring a full snapshot.
override
saveDownloadTask(String downloadId, int taskId, {String? fileName, VesperDownloadPublicCollection collection = VesperDownloadPublicCollection.downloads}) → Future<String?>
override
seekBy(String playerId, int deltaMs) → Future<void>
override
seekToLiveEdge(String playerId) → Future<void>
override
seekToRatio(String playerId, double ratio) → Future<void>
override
selectSource(String playerId, VesperPlayerSource source) → Future<void>
override
setAbrPolicy(String playerId, VesperAbrPolicy policy, {int? expectedCatalogRevision}) → Future<void>
override
setAudioTrackSelection(String playerId, VesperTrackSelection selection) → Future<void>
override
setKeepScreenOnDuringPlayback(String playerId, bool enabled) → Future<void>
override
setPictureInPictureConfiguration(String playerId, VesperPictureInPictureConfiguration configuration) → Future<void>
override
setPlaybackRate(String playerId, double rate) → Future<void>
override
setPlaybackStallPolicy(String playerId, VesperPlaybackStallPolicy policy) → Future<void>
override
setResiliencePolicy(String playerId, VesperPlaybackResiliencePolicy policy) → Future<void>
override
setSubtitleStyle(String playerId, VesperSubtitleStyle style) → Future<void>
Applies minimal subtitle styling (font scale, visibility).
override
setSubtitleTrackSelection(String playerId, VesperTrackSelection selection) → Future<void>
override
setVideoTrackSelection(String playerId, VesperTrackSelection selection) → Future<void>
override
shareDownloadTask(String downloadId, int taskId, {String? fileName, String? mimeType}) → Future<void>
override
sourcePreloadSnapshot(String sessionId, String taskId) → Future<VesperSourcePreloadSnapshot>
override
startDownloadTask(String downloadId, int taskId) → Future<bool>
override
startPerformanceDiagnostics(String playerId, VesperPerformanceDiagnosticsConfiguration configuration) → Future<String>
override
stop(String playerId) → Future<void>
override
stopPerformanceDiagnostics(String playerId, String runId) → Future<VesperPerformanceDiagnosticsReport>
override
submitPerformanceFrameSamples(String playerId, String runId, List<VesperPerformanceFrameSample> samples) → Future<void>
override
togglePause(String playerId) → Future<void>
override
toString() → String
A string representation of this object.
inherited
updatePerformanceOverlayState(String playerId, String runId, VesperPerformanceOverlayState state) → Future<void>
override
updateSystemPlaybackMetadata(String playerId, VesperSystemPlaybackMetadata metadata) → Future<void>
override
updateViewport(String playerId, VesperPlayerViewport viewport) → Future<void>
override
videoGeometryForView(int viewId) → Stream<VesperVideoSurfaceGeometry?>
Geometry events for one native view, independent of player snapshots.
override

Operators

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