Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
ember-html5-audio
Advanced tools
Ember.js addon that wraps an HTML5 audio (<audio>
) element and "Emberizes" the events (loadedmetadata
, ended
, durationchange
, etc...) that it sends.
Install as an Ember-CLI addon:
ember install ember-html5-audio
// 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
}}
Arguments for the component:
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.
durationchange
event (https://developer.mozilla.org/en-US/docs/Web/Events/durationchange)loadedmetadata
event (https://developer.mozilla.org/en-US/docs/Web/Events/loadedmetadata)ended
eventtimeupdate
event (https://developer.mozilla.org/en-US/docs/Web/Events/timeupdate)We allow actions to be sent to the audio element through the ember-component-inbound-actions addon. Supported actions:
git clone
this repositorynpm install
bower install
npm test
(Runs ember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
FAQs
Ember.js component that serves as a HTML5 audio element.
We found that ember-html5-audio demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.