LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FIT SIZE WMP!

Hello guys pls I need help with fit size of Windoes media player, when I play some films etc. I try almost evry ways to solve this problem, but unsuccsessfully. Pls help, me. I need when i click in array Prehliadač on some files with ending .avi I want play this movie in my WMP but with size Heigh - 311. Width - 450.

Image with concept is in attachement.

 

 

Thank you

 

0 Kudos
Message 1 of 5
(3,524 Views)

Noro,

 

Have you seen this post?

 

http://forums.ni.com/t5/LabVIEW/Windows-Media-Player-size/td-p/1310251

 

It seems to describe what you are trying to do. Also, I see in your code you are setting the size of the player (přehrávač) before you call the player. You might try setting the size after you call the player.

Austin
Staff Software Engineer
NI
0 Kudos
Message 2 of 5
(3,458 Views)

Yes i saw it, i think that it will be somewhere in the fact that while playing is no resized player. But i dont know when i call function for resize player.

0 Kudos
Message 3 of 5
(3,436 Views)

Noro,

 

From the posts I have read, my understanding is that  each time you call the media player, you have to reset the container bounds. It is also my understanding that each time you locate a new video with the URL property node, you are loading a new video into the player, which is causing it to resize. I think you should try placing the width/height controls immediately after your URL property node to resize the player as soon as the new video is loaded. Let me know if this produces the desired results. I'm playing with it on my end as well so if I find out anything useful I'll post and let you know.

Austin
Staff Software Engineer
NI
0 Kudos
Message 4 of 5
(3,397 Views)

You mean this? 

It doesnt work too.

 

wmp.png

0 Kudos
Message 5 of 5
(3,328 Views)