Bitmovin-Player Rails

Adaptive HTML5 Video Player for Rails

Usage

After installation you can embed a Bitmovin-Player anywhere in your views as simple as this:

<%= bitmovin_player(
    width: '800px', height: '450px',
    dash: "//bitmovin-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd"
    hls: "//bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8"
    progressive: "//bitmovin-a.akamaihd.net/content/MI201109210084_1/MI201109210084_mpeg-4_hd_high_1080p25_10mbits.mp4"
    poster: "//bitmovin-a.akamaihd.net/content/MI201109210084_1/poster.jpg") %>

Installation

Add this line to your application's Gemfile:

gem 'bitmovin-player-rails'

And then execute:

$ bundle

Now run the generator and follow the instructions

$ rails generate bitmovin_player

Configuration

Bitmovin-Player-Rails supports all settings Bitmovin-Player supports. Please look at the documentation and just translate the JavaScript config to Ruby hashes and you are good to go.

Need Help?

If you find a bug or need some help don't hesitate to raise an Issue here on GitHub or contact us

Contributing

Feel free to send us pull requests or suggestions!

License

The gem is available as open source under the terms of the MIT License.