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 5
(3,470 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 5
(3,423 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 5
(3,417 Views)

Hello Hubert,

Congratulations on resolving the problem of displaying videos that have various resolutions.

Which Windows version and Labwindows/CVI are you currently using to display videos? 

Cheers from Louisiana! Is that your cool Camaro?

Thank you,

Kevin

0 Kudos
Message 4 of 5
(141 Views)

Hello Kevin, you may have not focused on that the message you are replying to dates back to 2017.

Hubert has not connected any more from those days so your question could remain unresolved, but fortunately the discussion is named How to display a video on a panel with Active X (CVI 2013)  😉



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(108 Views)