I am formatting a video with a gem of video_js. For example, here, as I print my videos:
.row
- @streams.each do |stream|
= videojs_rails sources: { mp4: stream.video}, setup: "{}", controls: true, width:"400", class: "col-md-10 col-md-offset-1"
Everything works fine, as expected, if I go to this page with a link. If I create a button c link_toon this page, formatting will be disabled. I need to refresh the page so that it looks as expected. What is wrong with that? Any ideas?
source
share