@cable_ready/audio_operations
v5.0.0
Published
CableReady Audio Operations
Downloads
1
Keywords
Readme
Package @cable_ready/audio_operations
A collection of audio operations meant to be used with cable_ready
.
Installation
Install @cable_ready/audio_operations
in your application:
yarn add @cable_ready/audio_operations
# or
npm install --save @cable_ready/audio_operations
Usage
Add the audio operations to CableReady:
// app/javascript/packs/application.js
import CableReady from 'cable_ready'
import AudioOperations from '@cable_ready/audio_operations'
CableReady.addOperations(AudioOperations)
And configure CableReady on the Ruby-side to include the new operation:
# config/initializers/cable_ready.rb
CableReady.configure do |config|
config.add_operation_name :play_sound
end