Configuring Media Player in TIA Portal V13 and WinCC Unified

David Krause13 min read
SiemensTIA PortalTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Overview

The Media Player control in the Siemens HMI engineering environment lets a WinCC runtime display video, audio, and animated sequences inside a screen. The control is delivered as a stock ActiveX / OCX object in WinCC Professional / WinCC Advanced V13 SP1 and as a native RT object in WinCC Unified (V17 and later, documented online for V21). Engineers use it to deliver animated process documentation, video-based operator guidance, training loops, and machine acceptance recordings on a Comfort Panel, Unified Comfort Panel, or WinCC Runtime Professional PC.

This reference walks through both engineering paths so a project that started in TIA V13 can be migrated forward without losing the original screen layout, and so new projects in TIA V17/V18/V19/V20/V21 can use the newer Unified control. Where the dialogs and property sheets differ between versions, the differences are called out explicitly.

Edition gate: The Media Player control ships with WinCC Professional and WinCC Advanced. WinCC Basic (the configuration layer bundled with STEP 7 Basic on the S7-1200 starter kits) does not include video controls. If the "Controls" toolbox shows no Media Player icon, the installed WinCC edition does not support it — verify with the Automation License Manager (ALM) and the installed SIMATIC WinCC package.

Prerequisites

Component Minimum version Notes
TIA Portal V13 SP1 (13.0.1.0) Required for the original Classic Media Player (WMP-based OCX) workflow
SIMATIC WinCC Professional / Advanced V13 SP1 Provides the "Controls" palette in the HMI screen editor
Runtime target Comfort Panel (TP/KP 4"–22"), WinCC RT Professional, or Unified Comfort Panel Hardware-dependent codec stack (see codec table below)
License WinCC RT Professional / WinCC Advanced RT Tags and screens are visible in the configuration without an RT license, but the Media Player will not play content at runtime without it
File format Container/codec combination supported by the RT target Verify the panel generation's video profile before authoring
Optional upgrade TIA V17 / V18 / V19 / V20 / V21 with WinCC Unified Provides the newer native Media Player RT object documented in the Siemens online help

Confirm the installed TIA Portal build under Help > About and the WinCC package version under Help > Installed Software. An exact version number is essential when filing a Siemens Support Request (SR) because the Media Player control was re-implemented between V13 and V17.

Adding the Media Player in TIA Portal V13 (WinCC Professional / Advanced)

  1. Open the TIA Portal project and expand the HMI device in the project tree.
  2. Open Screens > Add new screen (or select an existing screen) to launch the HMI screen editor.
  3. In the screen editor, switch from the "Toolbox" task card to the Controls task card (the right-hand palette in the editor). The Controls palette ships with stock WinCC controls: HTML browser, Media Player, PDF view, Sm@rtClient view, WinCC Channel Diagnostics, Alarm view, Trend view, Function trend, Ruler, Slider, Gauge, Bar, and others.
  4. Drag the Media Player icon onto the canvas. A rectangular placeholder object is dropped at the cursor position; the HMI editor assigns the next free control name (Control_1, Control_2, …).
  5. Resize the placeholder to the target display area. Comfort Panel multi-touch screens should keep a minimum touch target of 60 × 60 pixels; the Media Player has no native touch interaction with the video content (it is a display surface, not an input element), so the bounding box can be reduced to fit the visible frame size.
  6. Open the Inspector window (View > Inspector or Ctrl+Shift+I) and select the Media Player instance to expose the configuration properties.
Classic implementation note: In TIA V13 SP1 the Media Player control is implemented as a Microsoft Windows Media Player OCX wrapper. On a PC-based runtime (WinCC RT Professional) it relies on the locally installed WMP runtime; on a Comfort Panel it relies on the firmware-embedded WMP engine. The exact transcode profile differs — always test the source file on the actual panel before commissioning.

Configuring the Media Source in TIA V13

The Media Player control exposes a small set of configuration properties in the Inspector. The critical properties for playback are listed in the table below.

Property (Inspector) Purpose Example value
URL / File name Path to the media file. On a Comfort Panel this is a path on the panel's flash storage or on an external USB / SD card; on RT Professional it is a local file path or UNC path. /media/intro.wmv, \storage_card\usb\demo.mp4
Auto start If enabled, playback begins as soon as the screen is loaded. True / False
Display size Selects stretch, fit, or original resolution. "Fit to size", "Stretch", "Original"
Loop Restarts the clip at the end of the stream. True / False
Mute Suppresses the audio output. True / False
Volume Audio level 0–100. 0–100
Tool bar Shows or hides the transport controls. True / False
Status bar Shows or hides the seek / time bar. True / False

To make the file path dynamic, link the URL property to an HMI tag of type WString via the dynamic value list. A common pattern is to set the tag with a script that selects a video from a recipe or a tag-prefix list, for example:

// VBScript on a button "Play help video"
SmartTags("MediaURL") = "\" & "/media/help_" & SmartTags("LanguageID") & ".wmv"
ActivateScreen "Help", 0

When the URL tag is updated and the screen is visible, the control re-loads and plays the new file. On a Comfort Panel the path must use forward slashes and the file must be transferred to the panel's storage location by including the path under HMI device > Files in the file system in the project tree and adding the asset to the load transfer list.

Adding the Media Player in WinCC Unified (V17 / V18 / V19 / V20 / V21)

WinCC Unified replaces the OCX-based controls with native HTML5-aware RT objects. The Media Player is documented in the Siemens online help under Configuring screens (RT Unified) > Overview of screen objects (RT Unified) > Controls (RT Unified) > Media Player (RT Unified) (Siemens TIA Portal docs — Media Player (RT Unified)).

  1. Open the TIA Portal project and the WinCC Unified HMI device.
  2. Open the screen editor and open the Toolbox task card; in Unified the Media Player is grouped under Controls > Media.
  3. Drag the Media Player object onto the canvas. The object uses a single configurable surface (no OCX border chrome).
  4. Select the placed object. The Inspector window shows the configuration tree.

Configuring the URL in WinCC Unified

  1. In the Inspector window click Properties > General > URL. This is the documented entry point in the Unified editor (see the Media Player (RT Unified) online help).
  2. Enter the URL. Supported schemes are:
    • file://<path> — local file on the Unified Comfort Panel or Unified PC runtime. Forward slashes are required.
    • http://<host>/<path> / https://<host>/<path> — stream from a web server reachable from the RT device.
    • rtsp://<host>/<path> — IP camera stream (only on Unified PC runtime; Comfort Panels do not support RTSP).
  3. Click Dynamic value to switch the URL to a tag. The dynamic value accepts an HMI tag of type WString for runtime re-binding.
  4. Set Autoplay, Loop, Show controls, and Muted under Properties > General.
  5. Under Properties > Appearance configure the display mode (contain / cover / fill) and z-order with respect to other screen objects.
  6. Under Properties > Events wire the OnEnded, OnError, and OnPlay events to script functions for fault handling and chained playback.

To dynamically change the URL at runtime from a Unified script:

// JavaScript in a button "Operator training video"
export function Play_TrainingVideo() {
  HMIRuntime.UI.Screens[1].Items("MediaPlayer_1").PropertyFlask = {
    URL: "file:///media/training_" + Tags("LanguageID").Read() + ".mp4"
  };
  HMIRuntime.UI.Screens[1].Items("MediaPlayer_1").Play();
}

Note that the script uses the Unified Client API; on a Unified Comfort Panel the call is local, on a WinCC Unified PC runtime it is a remote call to the SCADA node.

Deploying the Media Files to the Runtime

Runtime target File location How to deploy
Comfort Panel (V13 classic) Internal flash, SD card, or USB stick plugged at the panel Add file under HMI device > Files in the file system; tick "Transfer" in the load dialog
WinCC RT Professional (V13 classic) Local folder on the RT PC, e.g. C:\Siemens\Automation\WinCC\media Manual copy or a WinCC file transfer; reference with absolute or UNC path
Unified Comfort Panel (V17+) /home/industrial/<project>/<path> on the panel Add file to the project, enable "Transfer as part of the project"; the path is preserved in the panel file system
Unified PC Runtime Local folder on the SCADA node Manual copy or supply via a corporate distribution tool; reference with file:// URL

Compiling, Loading, and Verification

  1. Compile the HMI: Right-click HMI device > Compile > Software (rebuild all). A clean compile is required before the load dialog will offer the latest screen and tag list.
  2. Simulate the screen in the HMI Runtime Simulator (Start simulation on the toolbar) to validate the URL and the file path locally. The simulator runs on the engineering PC and uses the same codec stack as a PC runtime, so this is the fastest way to catch URL typos and unsupported codecs.
  3. Load the project to the runtime target: Online > Extended download to device for an HMI panel, or the standard download for a PC runtime. The dialog must list all referenced media files in the "Files for transfer" list — if a referenced file is missing, TIA Portal issues the warning "File <name> is not available in the project" and skips the file. Resolve by re-adding the file or by clearing the reference.
  4. On the runtime target, navigate to the screen that hosts the Media Player. Verify that:
    • Video starts automatically (if Autoplay is enabled).
    • Audio plays at the configured volume (if not muted).
    • Switching the dynamic URL tag changes the played clip without restarting the screen.
    • Events OnPlay, OnPause, OnEnded, and OnError fire as expected (place a script that sets a status tag and watch the tag in the online tag monitor).
  5. Capture a screenshot of the runtime for the commissioning report and log the firmware build, panel type, file size, codec, and bit rate of every deployed video.

Supported Codecs and Container Formats

Runtime target Recommended container Recommended codecs Maximum tested resolution
Comfort Panel (V13 SP1 classic, 4"–22") .wmv, .mp4 WMV9, H.264 baseline, MPEG-4 part 2 640 × 480 @ 25 fps typical, 1280 × 720 on TP1500+ for short clips
WinCC RT Professional (V13 SP1) .wmv, .mp4, .avi WMV, H.264, MPEG-4 (codec limited by Windows Media Player version on the RT PC) 1920 × 1080 subject to CPU and GPU
Unified Comfort Panel (V17+) .mp4, .webm H.264 high profile, VP8, VP9 (panel-dependent) 1920 × 1080 on the MTP1500/1900/2200 Unified panels
Unified PC Runtime (V17+) .mp4, .webm, .ogg H.264, H.265 (RT Advanced), VP9, AV1 (build-dependent) 4K subject to GPU
Always validate on the actual panel. Hardware revisions of Comfort Panels and Unified Comfort Panels vary in their embedded decoder silicon. Transcode a 10-second test clip at the chosen bit rate and confirm playback before producing the final media library.

Troubleshooting Matrix

Symptom Likely cause Resolution
Media Player icon is missing from the Controls palette in TIA V13 WinCC Basic / WinCC Comfort installed instead of WinCC Professional or WinCC Advanced Verify installed SIMATIC WinCC package under Help > Installed Software; install the missing edition or upgrade to a tier that includes the Media Player control
Control is placed but shows "X" or red box at runtime URL path is wrong, file is not on the runtime, or codec is unsupported Open the runtime trace viewer (RT trace); enable the "Controls" channel; deploy the file via Files in the file system; transcode the source to a supported profile
Audio plays but no video Video codec missing, or hardware acceleration disabled Re-encode the file to H.264 baseline / MP4; on a PC runtime install a current codec pack or the matching WMP version
Video plays in the simulator but not on the panel File not transferred to the panel, or path case mismatch Inspect the panel's /media directory via the panel's service page (Control Panel > OP > File Browser); confirm case-sensitive path matches the URL exactly
Switching the dynamic URL does not reload the clip Property "URL" not bound to the tag, or the screen caches the old value Rebind the URL property via the dynamic value dialog; force a screen refresh by toggling the screen visibility from a script
OnError event fires immediately at runtime URL scheme not supported, network unreachable, or HTTP 4xx / 5xx response Validate the URL in a browser on a workstation with the same network access as the panel; on a Unified Comfort Panel confirm HTTPS certificates are trusted
Dropped frames on a Comfort Panel Bit rate too high or B-frame heavy profile Re-encode with a constrained baseline profile, target bit rate ≤ 2 Mbps for 480p / ≤ 4 Mbps for 720p
Memory grows over time on WinCC RT Professional Media Player not released on screen change Implement a Cleared event that calls Stop on the control before leaving the screen

Migration from TIA V13 Classic to WinCC Unified

Projects that used the OCX Media Player in V13 SP1 must be re-engineered in Unified. The migration is a manual operation; the HMI screen is reused but the control instance must be replaced. Recommended steps:

  1. Open the V13 project in the latest TIA Portal (V17 or later); confirm the project upgrade completes without errors.
  2. Open the screen that contained the Media Player. The legacy OCX is rendered as a placeholder with a "legacy" marker.
  3. Delete the legacy Media Player and insert the new Unified Media Player from the Toolbox.
  4. Map the V13 properties (URL, Auto start, Loop, Mute, Volume) to the corresponding Unified properties; V13 had no concept of OnError or OnEnded events, so design the event handling afresh in the Unified script environment.
  5. Re-test on a Unified Comfort Panel or Unified PC runtime target.

Field-Commissioning Checklist

  • Record the TIA Portal version, WinCC edition, and installed SP / Update level in the project cover sheet.
  • Record the runtime target type, firmware version, and serial number.
  • For every media file: container, video codec, audio codec, resolution, frame rate, bit rate, file size, MD5 checksum, source author, and approval status.
  • Verify the URL scheme is supported on the runtime target (file://, http(s)://, or rtsp://).
  • Confirm licensing on the runtime (WinCC RT Professional or WinCC Advanced RT).
  • Capture a screenshot of each media player on the live HMI for the FAT/SAT report.
  • Document the password / write protection of the SD card or USB media if used.

FAQ

Where do I find the Media Player in TIA Portal V13?

Open the HMI screen editor, then switch the right-hand Toolbox task card to the Controls palette. The Media Player icon is listed there in WinCC Professional and WinCC Advanced V13 SP1. It is not available in WinCC Basic / WinCC Comfort.

How do I address the video file from a script in TIA V13?

Bind the URL property of the Media Player to an HMI tag of type WString. Write the file path (for example /media/help.wmv) to the tag from a VBScript, and the control re-loads and plays the new file when the screen is visible.

What is the property name to set the URL in WinCC Unified?

In the Inspector window for the Media Player object, open Properties > General > URL and enter the address, or click the dynamic icon to bind it to a tag. See the Siemens Media Player (RT Unified) online help for the official reference.

Can a Comfort Panel play MP4 / H.264 videos?

Comfort Panels with TIA V13 SP1 support WMV and some H.264 baseline profiles, with practical limits around 640 × 480 at 25 fps on the smaller panels. Higher resolutions work on the 15" and 19" Comfort Panels, but every clip must be validated on the actual panel. WinCC Unified Comfort Panels (V17+) support H.264 high profile / MP4 up to 1920 × 1080.

Why does the Media Player show a red "X" or a blank area at runtime?

Common causes: the URL path is wrong, the file was not transferred to the runtime, or the codec is not supported. Open the runtime trace viewer, enable the Controls trace channel, and re-transfer the file via Files in the file system. If the file is on an SD card or USB stick, confirm the case-sensitive path matches the URL exactly.

Back to blog