Hi,
OS Sierra
Xojo 17 2.1
A movieplayer object is always visible, even if setting MoviePlayer1.visible = false and refreshing it or its window.
The only way to make it disappear is to close it (or to move it outside the window).
In older version of Xojo (at least 16 1.1), setting MoviePlayer1.visible = false, it would disappear.
Any suggestion? Or is it a bug?
Thank you.
Well, at one point they switched to AVFoundation framework.
Now please fill a feedback case so this is not forgotten.
For the timebeing we have a few functions in MBS Plugins:
http://www.monkeybreadsoftware.net/class-movieplayer.shtml
You can get the layer object there and set hidden property to true.
Greetings
Christian
Unfortunately my license is not up to date; so I’d appreciate if somebody filled a feedback case for me.
Thank you.
[quote=353311:@Carlo Rubini]Unfortunately my license is not up to date; so I’d appreciate if somebody filled a feedback case for me.
Thank you.[/quote]
You dont need a license to file a report.
0. Launch Feedback
0. Type the topic of your bug report into the search field
0. If theres already a case, add a comment.
0. If not, click create case.
Done, thank you.
<https://xojo.com/issue/49820>
(sorry for the spelling error in the title in feedback “movieplayer cannot be MAKE invisible” > “made”)
Resize and move it to minus values, at least that’s what I did to hide it. Although you can also use a PagePanel to hide it.
At present I worked around the problem with a PagePanel; but I’ll certainly try your resize/move suggestion and see what works best in my app.
Thank you.
This was already reported - my case <https://xojo.com/issue/45076>
I use the following to “Turn Off” a movie
#if TargetMacOS then
MoviePlayer1.Left=-10000
MoviePlayer1.Top=-10000
#endif
MoviePlayer1.Visible=false
MoviePlayer1.Stop