LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display a video on a panel with Active X (CVI 2013)

Solved!
Go to solution

Hello

 

I want to display a video on a panel. I use ActiveX control.

First, I've tried with "Windows Media Player" activeX control but I have a problem : the activeX screen on my panel is automatically resize, depends to the size of my video... So if my video is 1920x1080, and my panel 500x500, the video will go outside of my panel... It's very annoying.

 

After I tried to use an other activeX : MS TV Video Control.

I added to .fp but the .obj contains some errors so the code can't build ! I have the error :  "undefined symbol ... referenced in ...main.obj".

 

If anybody know some things on displaying video on a panel, please help me.

 

Thanks !

Hubert

0 Kudos
Message 1 of 3
(2,771 Views)

Hi,

 

Maybe the easiest solution is to get the size of the video and adapt the size of the CVI panel using SetPanelAttribute.

 

Thanks

Paolo_P
Certified TestStand Architect
Certified LabVIEW Architect
National Instruments France

0 Kudos
Message 2 of 3
(2,724 Views)
Solution
Accepted by topic author Hubert_69

Hello Paolo, 

 

I've already tried to use SetPanelAttribute or SetCtrlAttribute

In reality, I find an other solution ! First you Set the URL of the video on the ActiveX control "Windows Media Player". Then you Stop the video.

After that, you Play the video and set a tempo such as 0.1s because the video have to load ! The tempo is very important !  (Do not use Delay() )

Then you can use SetCtrlAttribute to resize the video control on your panel !

 

Thanks !  

0 Kudos
Message 3 of 3
(2,718 Views)