In-app browsers, I forgive thee not

A Behemoth case study and some complaining

Image for post
Image for post

Prayer Recognition

Image for post
Image for post
“Prayer of Behemoth” prayer card
['living', 'god', 'shall', 'not', 'forgive', 'jesus', 'christ']
const stream = recognizeMic({
format: false,
objectMode: true,
max_alternatives: 10,
keywords: keywords_array,
keywords_threshold: 0,
word_alternatives_threshold: 0
})
let praying = false
let recited = []
stream.on(‘listening’, () => {
praying = true
})
stream.on(‘data’, (data) => {
if (data.results[0] && data.results[0].keywords_result) {
let keywords = data.results[0].keywords_result
for (let key in Object.keys(keywords)){
recited.push(key)
}
recited = [...new Set(recited)]
}
})
stream.on(‘stop’, () => {
praying = false
if (recited.length >= 6) {
// prayer recognized
} else {
// try again
}
})

In-app Browsers (aka portals to Hell)

A Heavenly Fallback

if (prompted == null) {
prompted = false
}
navigator.mediaDevices.getUserMedia({ audio: true, video: false })
.then((stream) => {
// do something with stream
})
.catch((error) => {
// do something with error
})
prompted = true

Thanks

Image for post
Image for post
Behemoth

Written by

I develop websites for rock 'n' roll bands and get paid in sex and drugs. Previously Silva Artist Management, SoundCloud, and Songkick. Currently: Available

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store