Garteal / MPDN_Extensions

Media Player .Net (MPDN) Open Source Extensions
Other
0 stars 0 forks source link

disable 'reset window size when closing media' when 'resize window to fit media' is enabled upon next file playback #10

Open Ryrynz opened 9 years ago

Ryrynz commented 9 years ago

ATM when both these options are enabled the window drops back to it's closed state before fitting the new media. Preventing this from happening makes things more seamless. I think Zach would prefer to keep this behavior for MPDN but said the playlist could temporarily disable the reset window size when the next file is loaded.

var original = PlayerControl.PlayerSettings.GeneralSettings.ResetWindowSize; PlayerControl.PlayerSettings.GeneralSettings.ResetWindowSize = false; // ... Open new file ... PlayerControl.PlayerSettings.GeneralSettings.ResetWindowSize = original;

zachsaw commented 9 years ago

If the last item in the playlist fails to open, we'll need to reset the window size if the setting was true. This isn't possible yet but will be in the next version of MPDN - PlayerControl.ResetWindowSize();

We should definitely wait until the next release of MPDN is available before implementing this.