Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changes/render-platformview
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patch type="changed" "Default VideoTrackRenderer renderMode to auto, which currently resolves to texture rendering"
10 changes: 9 additions & 1 deletion lib/src/widgets/video_track_renderer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ enum VideoViewMirrorMode {
}

enum VideoRenderMode {
/// Let the SDK choose the rendering backend. Currently resolves to
/// [texture] on all platforms, but the resolution may change in a
/// future release.
auto,

/// Render frames into a Flutter texture.
texture,

/// Render with a native platform view. Supported on iOS and macOS,
/// other platforms fall back to [texture].
platformView,
}

Expand Down Expand Up @@ -85,7 +93,7 @@ class VideoTrackRenderer extends StatefulWidget {
this.track, {
this.fit = VideoViewFit.contain,
this.mirrorMode = VideoViewMirrorMode.auto,
this.renderMode = VideoRenderMode.texture,
this.renderMode = VideoRenderMode.auto,
this.autoDisposeRenderer = true,
this.cachedRenderer,
this.autoCenter = true,
Expand Down
Loading