The Digital Video Player widget allows you to play mp4 encoded video files that can be used as a simple way to create complex animated splash screens or to convey user information in a video format along with audio. The applications are only limited by your imagination. This example demonstrates how to play a video file with audio. A connected model of Powerview display is required.
Compatibility
This Digital Video widget is only available on displays with the M2 and newer processor platforms which includes the PV780B, PV1100, PV1200, PV700 and PV500. You must use Powervision 7.x or newer to utilize this feature.
Video File Restrictions
In order for the widget to be able to play the video file it must be formatted as follows:
- MP4 encoding per H.264
- Frame Rate: 25fps
- Resolution: 768 x 432 Landscape or 432 x 768 Portrait mode.
- Aspect Ratio: 16:9
- Audio Sample Rate: 96khz
Using the Widget
- Add the mp4 file to the Customer Extension in the Library as a "File" type.
- Select Video Playback as the Media App source using the action SelectMediaSource
- Using a script load the path to the file into the DigitalVideoURL string. The path will always be /fs/etfs/config/config0/CustomerExtensions/ + the file name including the mp4 extension.
- Call the digital video action LoadURL to load the file and automatically start playing it.
- To replay the same file a blank URL must first be loaded then the desired file loaded again.
Enabling Audio
To listen to the audio stream accompanying the mp4 video a connected display is needed with the audio line outputs and the following actions.
- Connect the Left & Right audio outputs to a audio amplifier line inputs
- Configure the settings in the Media Application tab selcting the output plugin option and the Audio Sources available.
- Select the Audio Source by firing the action MediaApp->SelectMediaSource(VideoPLayback)
- Initialize the volume to start with a value of about 20- 30, this value depends on the gain of your audio amplifier.
- Control Volume by firing the actions MediaApp->VolumeUp or VolumeDown(5)
Download the example created for a PV1100 in 8.9.1.
Comments
0 comments
Please sign in to leave a comment.