<div class="peak-meter w-auto max-w-full h-9 ml-5 my-3" style="height: 180px;"></div>
WebRTC Publisher configuration showing minimal encoder settings with the audio meter integrated within the hidden settings.
Disabling the verticalMeter
config, this turns on a horizontal audio meter display.
<div class="flex w-full h-auto my-auto">
<div id="publisher-settings-minimal" class="has-settings"></div>
</div>
<script type="text/javascript">
var player = jwplayer("publisher-settings-minimal").setup({
"aspectratio": "16:9",
"playbackRateControls": true,
"plugins": {
"../../js/webrtcpeakmeter-8.20.0.js": {
"verticalMeter": false
},
"../../js/webrtcpublisher-8.20.0.js": {
"applicationName": "webrtc",
"autoStartDevice": true,
"floatedControls": true,
"publishToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ3ZWJydGMiLCJpYXQiOjE2MzczMzAyNTksImV4cCI6MTY2ODg2NjI1OSwiYXVkIjoid3d3LmV4YW1wbGUuY29tIiwic3ViIjoianJvY2tldEBleGFtcGxlLmNvbSIsInN0cmVhbU5hbWUiOiJDNkx4Nmt1NkZFWGdLdHQifQ.4_38rdgyqWabGvoV6WZREjrqevVeGIgCKK7xOknwGx4",
"publisher": true,
"server": "wowza",
"serverURL": "rtc.electroteque.org",
"settings": true,
"toggleScreen": true,
"ui": {
"audioInput": "audioSource",
"audioOutput": "audioOutput",
"bandwidth": "bandwidth",
"container": "#encoder-menu-minimal",
"rates": "rates",
"resolution": "resolution",
"videoSource": "videoSource"
},
"userData": {
"param1": "value1"
}
}
},
"sources": [
{
"appName": "webrtc",
"file": "C6Lx6ku6FEXgKtt",
"live": true,
"publisher": true,
"type": "mp4"
}
],
"width": "100%"
});
</script>