Skip to content

Bugfix modernbrowser#2

Merged
AbomDocPhibes merged 13 commits into
masterfrom
bugfix-modernbrowser
Apr 29, 2026
Merged

Bugfix modernbrowser#2
AbomDocPhibes merged 13 commits into
masterfrom
bugfix-modernbrowser

Conversation

@AbomDocPhibes

@AbomDocPhibes AbomDocPhibes commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

v2.0.2 Microphone ADC

changed:

MIME type acception in the main script
btn-start and btn-stop behavior (removed hidden label behavior, changed to on click button events)
updated RecordRTC library to the newest version
included more robust error messaging if the control cannot or will not accept incoming audio

removed the iPad skip

use supported audio MIME types instead of forcing audio/mpeg,

saving/uploading with the real file extension instead of always .mpeg.
changed version number and date in config
stop-btn wasn't working on mobile. changed  hidden label to button control. also instanced variables to their respective ADC Instance ID
removed "video" from the start recording error since Microphone ADC doesnt support it
troubleshooting for mobile
changelog updated
changed .catch() error to be more robust instead of "failed to record"
changed stop and start record buttons to be actual button controls instead of hidden labels
removed changelog items from description CDATA. Changed author since I rewrote 70% of the current code when taking mobile browsers into account
fixed missing JS library references in config.xml for mobile fallback displays
removed/commented out external script references in open.xml
updated WebRTC library
Comment thread resources/dynamic/open.html Outdated
</label>
<br/>
<audio id="player" {% if showControls Then %}controls{% Endif %} {%if notIOS then%} {% if autoplay Then %}autoplay{% Endif %} {% if loop Then %}loop{% Endif %}{%EndIf%} controlsList="nodownload"></audio>
<input

@gabrielpeter gabrielpeter Apr 28, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The more modern way of defining a button is using the button element instead of the input type="button"

Comment thread resources/dynamic/open.html Outdated
id="btnUpload_{%=CurrentADC.InstanceID%}"
class="btn"
value="{%=CurrentADC.PropValue("UploadButtonText")%}"
onclick="uploadAudio({%=CurrentADC.InstanceID%});" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The more modern way of defining a click event is using addEventListener, this is more flexible and easier to maintain

changed to button type instead of input type
changed to addeventhandler instead of onclick listeners
@AbomDocPhibes AbomDocPhibes merged commit 580877b into master Apr 29, 2026
1 check passed
@AbomDocPhibes AbomDocPhibes deleted the bugfix-modernbrowser branch April 29, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants