I have a minimal app working well on my local but crashes on shiny server pro when I click 'Scan Barcode' button (see attached error log). I think the app can't find camera on browser. Is it possible to have a pop-window on browser requesting access to your camera?
library(shiny)
library(opencv)
UI
ui <- fluidPage(
titlePanel("Read QR code in real-time"),
fluidRow(
actionButton("barcode", "Scan Barcode"),
textOutput("results")
)
)
server logic
server <- function(input, output) {
observeEvent( input$barcode , {
identity <- opencv::qr_scanner(draw = FALSE, decoder = "wechat")
output$results <- renderText({
identity
})
})
}
Run the application
shinyApp(ui = ui, server = server)
Error log:

Thanks