Microsoft Stream video control in Power Apps
A video player for Microsoft Stream videos and channels.
Important
The Stream (Classic) control is deprecated and will be removed from Power Apps Studio. Microsoft is working on releasing a new control for Stream that is based on SharePoint. For more information, see Migration Overview - Stream (Classic) to Stream (on SharePoint).
Description
The control will allow app users to play videos and browse through channels from the Microsoft Stream service. For a list of supported regions for this control, go to Microsoft Stream FAQ.
Limitations
The control is not supported in Power Apps for Windows. On iOS, only Power Apps mobile is supported.
Key properties
StreamUrl – The URL of the Microsoft Stream video or channel to be shown in the control.
ShowControls – Whether video playback controls are shown to the end user.
Additional properties
AccessibleLabel – Label for screen readers. Should be the title of the video or audio clip.
AutoStart – Whether an audio or video control automatically starts to play a clip when the user navigates to the screen that contains that control.
BorderColor – The color of a control's border.
BorderStyle – Whether a control's border is Solid, Dashed, Dotted, or None.
BorderThickness – The thickness of a control's border.
DisplayMode – Whether the control allows user input (Edit), only displays data (View), or is disabled (Disabled).
Fill – The background color of a control.
FocusedBorderColor – The color of a control's border when the control is focused.
FocusedBorderThickness – The thickness of a control's border when the control is focused.
Height – The distance between a control's top and bottom edges.
StartTime – The time after the start of an audio or video clip when the clip starts to play.
TabIndex – Keyboard navigation order in relation to other controls.
Tooltip – Explanatory text that appears when the user hovers over a control.
Visible – Whether a control appears or is hidden.
Width – The distance between a control's left and right edges.
X – The distance between the left edge of a control and the left edge of its parent container (screen if no parent container).
Y – The distance between the top edge of a control and the top edge of the parent container (screen if no parent container).
Example
Play an audio or video file from Microsoft Stream
On the File menu, select Insert and then open Media drop-down menu.
Select Microsoft Stream from the list of media controls:
Paste the video link inside Stream URL property on the left:
Press F5, select the play button of the control that you added.
Note
Microsoft Stream requires authentication to play the video. Ensure the app user has the required permission.
Press Esc to exit the preview mode.
Browser considerations
iOS
The Power Apps iOS player does not support direct playback of videos embedded in the app. To watch the video, click on the Stream icon to launch the video player in a full-screen mode.
Safari
In order to view Microsoft Stream videos in an app in the Safari browser, you will need to turn off the option to prevent cross-site tracking.
Accessibility guidelines
Audio and video alternatives
- ShowControls must be true so that users can listen or watch multimedia at their own pace. This also allows users to toggle closed captions and full-screen mode on video players.
- Closed captions must be provided for videos.
- Consider providing an audio or video transcript using one of these methods:
- Put the text in a Label and position it adjacent to the multimedia player. Optionally, create a Button to toggle the display of the text.
- Put the text in a different screen. Create a Button that navigates to the screen and position the button adjacent to the multimedia player.
- If the description is short, it can be put it in the AccessibleLabel.
Color contrast
There must be adequate color contrast between:
- FocusedBorderColor and the outside color
- Fill and the multimedia player controls (if the fill is visible)
Provide closed captions and/or transcript if the video content has color contrast issues.
Screen reader support
- AccessibleLabel must be present.
Keyboard support
- TabIndex must be zero or greater so that keyboard users can navigate to it.
- Focus indicators must be clearly visible. Use FocusedBorderColor and FocusedBorderThickness to achieve this.
- AutoStart should be false because it can be difficult for keyboard users to stop playback quickly.
Known issue
Microsoft Stream appears as a connection in the connection consent dialog although it is a control. The control will appear in the app regardless of what actions the end-user takes in the connection consent dialog. The Microsoft Stream control will only display video for end-users that have permissions to the content presented in the control.