Re: [Rails] videojs and rails

2014-06-06 Thread Walter Lee Davis
On Jun 6, 2014, at 2:13 PM, Pierre-Andre M. wrote: > Believe it or not I'm still fighting with this thing in the rails > context. > > This js works PERFECTLY within its own flat file outside of rails. > However when I try and incorporate it into rails the video starts right > from the beginni

Re: [Rails] videojs and rails

2014-05-28 Thread Walter Lee Davis
Do you have this on a public server somewhere, so we can see it in a browser (and more properly, in a JavaScript debugger)? You have all the piece in place, getting them to work together is an implementation detail and a debugging exercise. You are very close. Walter On May 28, 2014, at 4:27 P

Re: [Rails] videojs and rails

2014-05-28 Thread Walter Lee Davis
You've already done what you need to do -- you have a matching ID in the view and the JS ('example_video_1'). The only thing you need to ensure now is that you either have an unobtrusive listener function set to encapsulate the VideoJS script, or you load the VideoJS script after the video is on

Re: [Rails] videojs and rails

2014-05-23 Thread Walter Lee Davis
Anything like that is going to happen in JavaScript, and while Rails has JS helpers all over the place, there's nothing in there that is specific to VideoJS. You should be able to add this script to your page after you get the video to play at all. Just pop it in a script tag underneath the vide

Re: [Rails] videojs and rails

2014-05-23 Thread Walter Lee Davis
On May 22, 2014, at 10:39 PM, Pierre-Andre M. wrote: > I am trying to get videojs to play a local video file within rails. > I am using the video.js library > I have tried 2 different gems (github: seanbehan/videojs and > alexesDev/videojs) > I have tried in line javascript > I have tried precomp

[Rails] videojs and rails

2014-05-22 Thread Pierre-Andre M.
I am trying to get videojs to play a local video file within rails. I am using the video.js library I have tried 2 different gems (github: seanbehan/videojs and alexesDev/videojs) I have tried in line javascript I have tried precompiling the video as an asset by placing in assets/video/test-meeting