ruby on rails 支持html5吗,Html5視頻與鐵軌上的紅寶石

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) %>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值