32158/how-to-add-videos-in-a-shiny-r-dashboard
Its pretty simple, try this:
server.r
library(shiny) shinyServer(function(input, output, session) {})
ui.r
shinyUI( fluidPage( tags$video(id="videoID", type = "video/mp4",src = "ExampleVideo_1280x720_1mb.mp4", controls = "controls") ) )
Hi, @Betty,
Could you please share your workaround so that we could resolve the issue asap?
Hi, @Gitika,
Thanks for replying.
My R Studio is version 4.0.1 (I thought version may affect, so I updated it from version 3.6 to 4.0. But not helpful)
Below is my code:
library(shiny)
server = function(input, output) {}
ui =fluidPage(tags$video(src = "Peak", type = "video/mp4", controls = T))
shinyApp(ui, server)
I saved my video file in the subfolder "www"
However, it seems my code doesn't work
Hi@Betty,
It seems your browser is not supporting the video format. Try with another video file. And get back to us if you get the same thing.
It's quite easy to add a video. To do so please structure your app like so:
shinyUI( fluidPage( tags$video(id="video2", type = "video/mp4",src = "SampleVideo_1280x720_1mb.mp4", controls = "controls") ) )
Try something like this: dashboardHeader(title="Edureka", dropdownMenu type = "message", messageItem(from = ...READ MORE
I'm trying to create a dashboard using ...READ MORE
hey, Add elements into list as below. list = ...READ MORE
Hi@akhtar, You can add new columns to a ...READ MORE
Its a small spelling mistake that you've ...READ MORE
Include this line in the code: Library(shinydashboard) READ MORE
Correct the function name. dashboardSidebar() READ MORE
The error means you’re missing out on ...READ MORE
To add slider bar and slider range ...READ MORE
Consider this vector: a<-c(1,2,3,NA,4,5,NA,NA) Write the function to impute ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.