seanbehan / videojs_rails

Video JS for Rails 3.1 Asset Pipeline
91 stars 71 forks source link

No video showing #22

Closed nsantiago2719 closed 9 years ago

nsantiago2719 commented 9 years ago

Hello. I have implemented the gem as you said. But when I tried to view one theirs no video that is showing just a sound. But it is working in full screen.

richardun commented 9 years ago

Dear Silvercrow27,

Probably a good idea to ensure this is not a viewing (browser, computer, flash) issue. Are you able to view the video at the bottom of this page? http://swanksports.com/ It says it's a live feed, but it isn't. If that works, I recommend making a static HTML page with the view source in that page and making sure your video is going to work with it.

If the video and your viewing capabilities are not the issue, then I'd look at the HTML that is being produced by videojs_rails. As far as what this gem is doing, it's integrating videojs with Rails apps, which is to say, it just writes the HTML for you. In the end, you have to make sure that the video.js code, your viewing capabilities, and the video you're trying to watch are not the issue.

Cheers, R

nsantiago2719 commented 9 years ago

Sorry for a late reply. By the way, yes I can view the video. Ok ill try what you just said .

Cheers,

nsantiago2719 commented 9 years ago

I guess I solved this by getting the video-js.swf file on the javascript directory.

keferboeck commented 9 years ago

As reference if anyone faces the same issue - after specifying the height the video was displayed:

example:

= videojs_rails sources: { mp4: "YOUR_PATH_TO_VIDEO.mp4" }, setup: "{}", controls: false, width:"100%", height:"50%"