Video Player

Last update: Edit

1 Introduction

The Video Player widget enables playing videos from Youtube, Vimeo, Dailymotion, and external MP4 files.

1.1 Features

  • Identify the provider and auto-load the right player
  • Enable and disable the controls bar
  • Loop the video when it finishes
  • Start the video on mute
  • Auto-play the video when it is ready
  • Define a poster image for external MP4 files
  • Set a static URL and poster when dynamic data is not specified

1.2 Limitations

  • File hosted in Mendix Server cannot be played in the Safari browser

2 Configuration

Place the widget inside or outside a context of an object that has a value attribute. If you do not place the widget inside a context, you need to provide a static URL; otherwise, the player will not render.

Configure the following properties:

2.1 Cordova Configuration

If your are building a hybrid mobile app, you need to add the following lines to enable access to YouTube, Vimeo, and Dailymotion videos as well as MP4 extensions through your Sprint in the Developer Portal > Mobile App > Custom Cordova Configuration:

<allow-navigation href="*://**" />
<allow-navigation href="*://**" />
<allow-navigation href="*://**" />
<allow-navigation href="*://**" />
<allow-navigation href="*://**" />
<allow-navigation href="*://**" />
<allow-navigation href="*://*.mp4" />