ActivityVideoPreviewSettings class Maps & 3D Scenes
Settings of an ActivityVideoPreview render.
Controls the timing (intro, fly-over, peak orbit, outro), the track and dot styling, the watermark and the camera of the video rendered by ActivityVideoPreview.start. The picture rendered by ActivityVideoPreview.startIntroImage uses only the overview related settings. Every default equals the native default.
Fields measured in seconds keep whole seconds only. Fractions are of the video frame height unless stated otherwise.
See also:
- ActivityVideoPreview - The renderer these settings configure.
- Annotations
-
- @experimental
Constructors
- ActivityVideoPreviewSettings({Duration duration = const Duration(seconds: 30), int fps = 30, int videoWidth = 1280, int videoHeight = 720, Duration introHold = const Duration(seconds: 5), double overviewFillFraction = 0.84, Duration outroHold = Duration.zero, Duration peakOrbit = Duration.zero, double peakOrbitDegrees = 360.0, double peakOrbitTiltDegrees = 62.0, bool showTrack = true, bool showStartMarker = true, bool showPositionMarker = true, double markerDiameterFraction = 0.035, Color trackColor = const Color.fromARGB(255, 131, 79, 255), double trackBorderFraction = 0.0, double trackWidthFraction = 0.0075, double watermarkHeightFraction = 0.028, double watermarkAlpha = 0.5, double chaseTiltDegrees = 55.0, double chaseWindowMeters = 300.0, double headingSmoothFactor = 0.12, double minLookAheadMeters = 25.0, double maxHeadingDegPerFrame = 1.5, int smoothingWindow = 9, Duration dataWarmup = const Duration(milliseconds: 3000), Duration frameSettleTimeout = const Duration(milliseconds: 800), Duration jumpSettleTimeout = const Duration(milliseconds: 4000)})
-
Creates a new ActivityVideoPreviewSettings instance.
const
Properties
- chaseTiltDegrees → double
-
The camera tilt while following the track, in degrees.
final
- chaseWindowMeters → double
-
The minimum half-size of the window that sets the chase zoom, in meters.
final
- dataWarmup → Duration
-
The minimum wait for map data before the first overview frame and the first fly-over frame.
final
- duration → Duration
-
The total length of the video.
final
- fps → int
-
The video frame rate.
final
- frameSettleTimeout → Duration
-
The per-frame budget for map data to finish loading before the frame is captured anyway.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- headingSmoothFactor → double
-
The exponential smoothing applied to the camera heading per frame, in (0, 1].
final
- introHold → Duration
-
The whole-track overview held before the fly-over starts.
final
- jumpSettleTimeout → Duration
-
The budget for map data after large camera jumps and style switches.
final
- markerDiameterFraction → double
-
The diameter of the start and position dots, as a fraction of the frame height.
final
- maxHeadingDegPerFrame → double
-
The largest camera heading change per frame, in degrees.
final
- minLookAheadMeters → double
-
The minimum look-ahead distance used for the camera heading, in meters.
final
- outroHold → Duration
-
The whole-track overview held after the fly-over.
final
- overviewFillFraction → double
-
The fraction of the frame the whole track may span in the overviews, in (0, 1).
final
- peakOrbit → Duration
-
The camera orbit around the track end, flown right after the fly-over reaches it.
final
- peakOrbitDegrees → double
-
The angle the camera travels around the track end during peakOrbit, in degrees.
final
- peakOrbitTiltDegrees → double
-
The camera tilt at the middle of peakOrbit, in degrees.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showPositionMarker → bool
-
Whether a red dot marks the current track position.
final
- showStartMarker → bool
-
Whether a static green dot marks the track start.
final
- showTrack → bool
-
Whether the track polyline is drawn.
final
- smoothingWindow → int
-
The moving-average window, in track points, applied to the track before the fly-over.
final
- trackBorderFraction → double
-
The track outline width, as a fraction of the frame height.
final
- trackColor → Color
-
The track polyline color.
final
- trackWidthFraction → double
-
The track line width, as a fraction of the frame height.
final
- videoHeight → int
-
The video frame height in pixels.
final
- videoWidth → int
-
The video frame width in pixels.
final
- watermarkAlpha → double
-
The opacity of the composited watermark, in (0, 1].
final
- watermarkHeightFraction → double
-
The height of the Magic Lane watermark composited into the frames, as a fraction of the frame
height.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
covariant ActivityVideoPreviewSettings other) → bool -
The equality operator.
override