Reference

Video

Video

Video control. Build it with the video helper.

Example

video(
  title: text("Title"),
  width: 240,
  height: 120,
  on_completed: ->(event) {}
)

Properties

  • alignment — Alignment of the content within the control.
  • autoplay
  • configuration
  • fill_color — Fill color.
  • filter_quality
  • fit
  • fullscreen
  • muted
  • pause_upon_entering_background_mode
  • pitch
  • playlist
  • playlist_mode
  • playback_rate
  • resume_upon_entering_foreground_mode
  • show_controls
  • shuffle_playlist
  • subtitle_configuration
  • title — The control shown as the title.
  • volume
  • wakelock

Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).

Events

  • on_completed — Fired on completed.
  • on_complete — Fired on complete.
  • on_enter_fullscreen — Fired on enter fullscreen.
  • on_error — Fired when an error occurs.
  • on_exit_fullscreen — Fired on exit fullscreen.
  • on_load — Fired on load.
  • on_loaded — Fired when the control has loaded.
  • on_state_change — Fired when the control's state changes.
  • on_track_change — Fired on track change.
  • on_track_changed — Fired on track changed.

Reference

  • Family: materials
  • Widget type: video
  • Helper: video