playSystemSound YES IDZE!!!
<body>
<button action="playSystemSound:1009">playSystemSound3:1009</button>
</body>
playAudio This actions play sounds from various sources: a URL, a local file, or an embedded resource.
Play from URL
<button action="playAudio:url:https://shaffex.com/MagicUiDemo/Resources/audio/LadyGaga.mp3">Play from url</button>
Play from local file
<button action="playAudio:file:test.mp3">Play from file</button>
Play from resource file
<button action="playAudio:resource:test.mp3">Play from resource</button>
Example how to play audio from various source and how to copy audio from utl to file
<body>
<vstack>
<button action="playAudio:url:https://shaffex.com/MagicUiDemo/Resources/audio/LadyGaga.mp3">Play from url</button>
<button action="playAudio:file:test.mp3">Play from file</button>
<button action="playAudio:resource:test.mp3">Play from resource</button>
</vstack>
<files>
<copy src="url:https://shaffex.com/MagicUiDemo/Resources/audio/LadyGaga.mp3" dst="test.mp3"/>
</files>
</body>
setAudioSession
<body>
<list>
<picker title="Category" key="category" value="ambient">
<text tag="ambient">ambient</text>
<text tag="playback">playback</text>
<text tag="multiRoute">multiRoute</text>
</picker>
<picker title="Mode" key="mode" value="moviePlayback">
<text tag="spokenAudio">spokenAudio</text>
<text tag="voiceChat">voiceChat</text>
<text tag="moviePlayback">moviePlayback</text>
</picker>
<button font="footnote" action="setAudioSession:category:$category;mode:$mode">setAudioSession:category:$category;mode:$mode</button>
<section>
<button action="setAudioSessionIsActive:true">setAudioSessionIsActive:true</button>
<button action="setAudioSessionIsActive:false">setAudioSessionIsActive:false</button>
</section>
</list>
</body>
<body>
<list>
<button action="setAudioSession:category:ambient">setAudioSession:category:ambient</button>
<button action="setAudioSession:category:multiRoute">setAudioSession:category:multiRoute</button>
<button action="setAudioSession:category:playAndRecord">setAudioSessioncategory:playAndRecord</button>
<button action="setAudioSession:category:playback">setAudioSession:category:playback</button>
</list>
</body>
playSystemSound Hello Kokoce
<body>
<button action="requestAuthorizationForNotifications">requestAuthorizationForNotifications</button>
</body>
<body>
<vstack>
<button action="playSystemSound:1007">Test Sound</button>
<button action="scheduleLocalNotification:id:MY_NOTIFICATION;timeInterval:60">Schedule Notification in 60 seconds</button>
</vstack>
<notification id="MY_NOTIFICATION">
<title>Notification Title</title>
<body>Notification Body</body>
<sound>default</sound>
<badge>1</badge>
</notification>
</body>
scheduleLocalNotification Hello Kokoce
<body>
<vstack>
<button action="playSystemSound:1007">Test Sound</button>
<button action="scheduleLocalNotification:id:MY_NOTIFICATION;timeInterval:60">Schedule Notification in 60 seconds x</button>
<button action="scheduleLocalNotification:id:NOTIFICATION_EVERY_60s;timeInterval:60;repeats:true">Every 60s</button>
</vstack>
<notification id="NOTIFICATION_EVERY_60s">
<title>Scheduled evey 60s</title>
<sound>default</sound>
</notification>
<notification id="MY_NOTIFICATION">
<title>Notification Title</title>
<body>Notification Body</body>
<sound>default</sound>
<badge>1</badge>
</notification>
</body>
cancelAllPendingNotifications Hello Kokoce
<body>
<button action="cancelAllPendingNotifications">cancelAllPendingNotifications</button>
</body>