Code Monkey home page Code Monkey logo

podlove-web-player-rails's Introduction

Podlove Web Player Rails

Gem Version Build Status Code Climate Dependency Status

Brings the Podlove Web Player goodness to Rails.

Installation

Add this line to your application's Gemfile:

gem 'podlove-web-player-rails'

And then execute:

$ bundle
$ rails g podlove_web_player_rails:install

Add this line to app/assets/javascripts/application.js:

//= require podlove-web-player-rails

And add this line to app/assets/stylesheets/application.css:

*= require podlove-web-player

Or add this line to app/assets/stylesheets/application.css.scss:

@import "podlove-web-player";

Usage

Use the podloveaudio or podlovevideo helpers to inplement the audio or video player into your views. The helper is modelled after the shortcodes of the Podlove Web Player WordPress plugin and can be given all the options mentioned in it's FAQ as a hash. Basic usage would look like this:

<%= podloveaudio(src: 'http://mysite.com/mymedia.mp3', duration: '03:33', title: 'My track') %>

You can also read a description of all available options in the Documentation.

Versioning

The major, minor, and patch version numbers mirror the version of the Podlove Web Player itself. Should a gem bug be discovered, a 4th version identifier will be added and incremented.

Contributing

Feel free to open an issue ticket if you find something that could be improved. A couple notes:

  • If it's an issue pertaining the stylesheet or javascripts, please report it to the podlove-web-player project.
  • If the stylesheet or javascripts are outdated, feel free to open an issue and prod me to get that thing updated. You could, of course, also fork the gem and send me an pull request with the update.

podlove-web-player-rails's People

Watchers

Jason avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.