Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-html5-audio

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-html5-audio

Ember.js component that serves as a HTML5 audio element.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Ember-html5-audio

Ember.js addon that wraps an HTML5 audio (<audio>) element and "Emberizes" the events (loadedmetadata, ended, durationchange, etc...) that it sends.

Installing

Install as an Ember-CLI addon:

ember install ember-html5-audio

Usage

// templates/some-template.hbs
{{html5-audio
    src="https://link-to-audio-file.ogg"
    durationChange=(action 'onDurationChange')
    loadedMetadata=(action 'onLoadedMetadata')
    ended=(action 'onEnded')
    timeUpdate=(action 'onTimeUpdate')
    actionReceiver=html5Audio
}}

Input

Arguments for the component:

  • src

Events

It implements some of the events for media elements (see https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events). Please fork and PR if you want to add more supported events.

Actions

We allow actions to be sent to the audio element through the ember-component-inbound-actions addon. Supported actions:

  • play
  • pause
  • seek

Building yourself

  • git clone this repository
  • npm install
  • bower install

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Keywords

FAQs

Package last updated on 30 Jan 2016

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