Video

Video widget

The Video Widget enables seamless integration of video content within your application, providing an immersive and engaging multimedia experience for users.

To get hands-on experience with Video widget, see live example in Ensemble Studio (opens in a new tab)

Properties

PropertyTypeDescription
sourcestringThe URL source to the media file
showControlsbooleanOffers options to show/hide video controls. (default true)
loadingWidgetWidgetThe widget to show when video is loading.
repeatbooleanVideo will kept replaying in loop.
autoplaybooleanAutomatically start the video when player is loaded. (default False)
playbackRatenumberFor changing the speed at which the video is displayed
volumenumberChanges the volume. (max = 100, min = 0)
onChangeActionAction to execute when the video has changed
onStartActionCall Ensemble's built-in functions or execute code when video is about to start
onEndActionCall Ensemble's built-in functions or execute code when video is about to end

Code Example

Video:
  source: https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4
  repeat: true
  autoplay: true
  showControls: false
  loadingWidget: 
    Progress:
      display: circular