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:
Followed the NI tutorial: How Can I Open Video Files in LabVIEW?
Used Calling a LabVIEW VI by Reference to reload the player.
Searched existing topics on this forum and on LAVA, but no solution worked 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:
https://forums.ni.com/t5/image/serverpage/image-id/350275i75A0481F3CCEC3A1/image-size/medium?v=v2&px=400
Video VI:
https://forums.ni.com/t5/image/serverpage/image-id/350276iDBD8FAAF967CDC56/image-size/medium?v=v2&px=400
file_example_MP4_480_1_5MG.mp4
VI_video.vi
main_VI.vi