Media

Completed

Media controls give the app designer a way to display and share an audio file or video file easily, take a picture, scan bar codes, etc.

For example, you need to build an employee safety training app. For the solution, you want to share a video with your employees and then have them acknowledge that they completed the training. With the Video control, you can have users view the safety video in the app, and then proceed to a training acknowledgment form. Or maybe you have an expense report app and want to let users upload pictures of their receipts. By using the Camera control, the user can take a photo and attach the picture without leaving the app.

Here are some details about the Media controls that are available:

Screenshot of the media controls menu.

  • Video - This control plays a video clip from a file or from on-line services such as YouTube or Azure Media Services. Closed captions can optionally be shown when specified.

  • Audio - This control plays a sound clip from a file, a recording from a Microphone control, or the audio track from a video file.

  • Camera - A control, which allows the user to take photos by using the camera on the device.

  • Bar code scanner - This control opens a native scanner on an Android or iOS device. The scanner automatically detects a barcode, QR code, or data-matrix code when in view. The control doesn't support scanning in a web browser.

  • Microphone - A control that allows app users to record sounds from their device as long as the device has a microphone accessible. Audio is stored in 3gp format in Android, AAC format in iOS, and OGG format in web browsers.

  • Add picture - With this control, users can take photos or upload image files from their device and update the data source with this content. On a mobile device, the user is presented with the device's choice dialog to choose between taking a photo or selecting one that is already available.

Here's how you can add a video to your app.

  1. Go to the Power Apps studio.

  2. Insert a Video control.

  3. For the Media property, in the formula box, enter a video URL from YouTube. The URL must be inside quotations.

  4. Resize the control by dragging the corners of the control.

Test out your app. Put the app in preview or play mode. You will recognize the normal YouTube interface, which seamlessly copies into the Video control.