Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Latest commit

 

History

History
31 lines (16 loc) · 607 Bytes

README.md

File metadata and controls

31 lines (16 loc) · 607 Bytes

Jwplayer::Rails

JW Player for Rails. Current version of JW Player is 6.2.3115

Installation

Add this line to your application's Gemfile:

gem 'jwplayer-rails'

Or install it yourself as:

$ gem install jwplayer-rails

Usage

First include assets on the page

<%= jwplayer_assets %>

Than place a div with JW Player

<%= jwplayer %>

You can pass options to jwplayer helper to customize it:

<%= jwplayer({width: 500, height: 200}) %>

More information for customization could be found here

Have fun!