PlayButton Op
shows a playbutton for forcing a simple user interaction
Summary (oneliner)
<p>after the play button is pressed, it will disappear and from then continue triggering the next ops.</p> <p><code>audiocontext.resume()</code> is executed when clicking.</p>
Full Name
- Ops.Html.PlayButton
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch PlayButton Example
INPUT PORTS
Trigger (Trigger)
Only if Audio Suspended (Number:
<i>boolean</i>
)<p>only show play button if audiocontext needs a user interaction (when audiocontext is suspended)</p>
Reset (Trigger)
Style Outer (String)
Style Inner (String)
Active (Number:
<i>boolean</i>
)OUTPUT PORTS
Next (Trigger)
Not Clicked (Trigger)
Audiocontext State (String)
Element (Object)
Clicked (
<i>boolean</i>
Number)Clicked Trigger (Trigger)
Patches using PlayButton
Changelog
added: will resume audiocontext when triggered | pandur - 2019-03-28 14:56 | |
added: option to not show up when audiocontext is already running | pandur - 2019-03-28 14:57 | |
added: option to not show up when audiocontext is already running | pandur - 2019-03-28 14:57 | |
rename | Ops.Patch.PlayButton renamed to Ops.Html.PlayButton | pandur - 2023-03-08 09:50 |