Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set 'play on source show' on media items #322

Open
BrendaH opened this issue Oct 9, 2020 · 1 comment
Open

Set 'play on source show' on media items #322

BrendaH opened this issue Oct 9, 2020 · 1 comment

Comments

@BrendaH
Copy link

BrendaH commented Oct 9, 2020

Is there a way to set the 'force play on source show' checkbox programmatically? There's getters and setters for all the other checkboxes under 'playback' in the options window of a media item, but this one seems to be missing. There's setAutostartOnSceneLoad for example, but I could not find a setStartOnSourceShow or something similar.

Could this be added in a future version? And is there a way via the internals to make a workaround for now (using xjs.exec)?

(By the way: thanks for solving all my other issues. I've upgraded to 2.10.2 and removed the workarounds and it all still works)

@SML-MeSo
Copy link
Collaborator

This was also a relatively-later addition to XBC's souce properties dialog. For adding. For the meantime you can try using xjs,exec with the property prop:StartOnSrcShow. Same flow as this comment but this time using set, xjs.exec('SetLocalPropertyAsync', 'prop:StartOnSrcShow', '<1 or 0>'.

No problem, as it is also a pleasure to know that the framework helps 3rd-party XBC plugin developers. :)

@SML-MeSo SML-MeSo added this to the 2.11.0 milestone Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants