I am just curious on how to display a video into a simple webpage using rails. I have try the following
我只是想知道如何使用rails將視頻顯示到一個簡單的網頁中。我試過以下
"320x240", :controls => true, :autobuffer => true)
But it didn't seem to do the trick. My file is located under public/video/trailer_test.mp4 but it won't work is there any reason why it shouldn't work? Note i only have an mp4 file at the moment.
但它似乎沒有做到這一點。我的文件位於public / video / trailer_test.mp4下,但它不起作用是否有任何理由不起作用?注意我目前只有一個mp4文件。
This is the html created
這是創建的html
This is my path file
這是我的路徑文件
/home/jean/rail/map/public/video
and this is this is the name of my file
這是我的文件的名稱
trailer_test.mp4
1 个解决方案
#1
1
I have faced a similar problem few months ago. Try to give the path for the video between brackets - []:
幾個月前我遇到過類似的問題。嘗試在括號之間給出視頻路徑 - []:
"320x240", :controls => true) %>