New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pxvideo_rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pxvideo_rails

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

PX-Video for Asset Pipeline

html5 video plugin for rails

Installation

Gemfile

gem 'pxvideo_rails'

Add the resources to your application.js file

# app/assets/javascripts/application.js
//= require px-video

And that resource to application.css file

/*
*= require px-video
*/

And to assets.rb add this line

# config/initializers/assets.rb
Rails.application.config.assets.precompile += %w( px-video-sprite.png )

Usage

<%= pxvideo_rails
sources: { mp4: "https://www.paypalobjects.com/webstatic/mktg/videos/PayPal_AustinSMB_baseline.mp4" } %>

Properties

controls: true,
setup: "{}",
width: "640",
height: "480",
captions: {en: "https://exampledomain.org/media/captions_PayPal_Austin_en.vtt"},
sources: { mp4: "https://www.paypalobjects.com/webstatic/mktg/videos/PayPal_AustinSMB_baseline.mp4" },
poster: "https://exampledomain.org/media/poster_PayPal_Austin2.jpg"

Based by Accessible HTML5 Video Player

Authors

  • Dennis Lembree, primary developer || https://github.com/weboverhauls || @dennisl
  • Victor Tsaran, consultation and testing || https://github.com/vick08 || @vick08
  • Jason Gabriele, consultation
  • Tim Resudek, design

Copyright 2014, eBay Software Foundation under the BSD license.

FAQs

Package last updated on 15 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc