HTML5 VIDEO is not working in my rails 3 app

前端 未结 4 1510
执念已碎
执念已碎 2020-12-16 19:17

I am trying to display HTML5 video in my Rails 3 app in development,i am using Sqlite3 and default webserver(Webrick).I put the video file (movie.ogg) under assets (assets/m

4条回答
  •  半阙折子戏
    2020-12-16 19:22

    Assuming your html is correct, unless things have dramatically changed in rails 3.1 with the asset pipeline anything contained in the public folder can be served up from the web server, so the exact location of where to store videos is up to you. According to your sources above you should put your videos in public/assets then confirm the videos are being served up by accessing http://localhost:3000/assets/movie.mp4 (or any other src url for a video).

提交回复
热议问题