LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MP4 video shows black screen on second run with ActiveX + Windows Media Player

Hi all,

I’m trying to display an MP4 video in a LabVIEW application using ActiveX + Windows Media Player (no other video players).

  • On the first run, the video displays correctly.

  • On the second run, the Media Player control shows only a black screen.

Here’s what I’ve tried so far:

I’ve attached  the example VIs to reproduce the issue.

 

Has anyone run into this issue with ActiveX + Windows Media Player and found a workaround (e.g., fully resetting/reloading the ActiveX control between runs)?

Thanks in advance for any advice!

 

Main VI:

Cedric51_0-1758804865301.png

 

Video VI:

Cedric51_1-1758804895090.png

 

 

 

 

 

Download All
0 Kudos
Message 1 of 3
(215 Views)

I can run it for multiple times without any black screen with LabVIEW 2024 on Windows 11.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 3
(163 Views)

It crashes LV for me. 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(148 Views)