You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already installed the plugins videojs-wavesurfer (npm install videojs-wavesurfer --save) and wavesurfer.js (npm install wavesurfer.js --save) and now I want to use them in my Ionic 3 component.
I was working only with Video.js, and all it working fine. But now, I need to add videojs-wavesurfer plugin.
And apparently recognized the plugin, but now I get this error:
Uncaught Error: Cannot find module "WaveSurfer"
How can I fix it?
The text was updated successfully, but these errors were encountered:
IgorSamer
changed the title
How can I use the plugin with Angular 4 in my Ionic 3 project
How can I use the plugin with Angular 4 in my Ionic 3 project?
Jun 29, 2018
importvideojsfrom'video.js';importWaveSurferfrom'wavesurfer.js';/*// this is only required when you're using the videojs-wavesurfer 'live' mode// with the microphone pluginimport MicrophonePlugin from 'wavesurfer.js/dist/plugin/wavesurfer.microphone.js';WaveSurfer.microphone = MicrophonePlugin;*/// register videojs-wavesurfer plugin with this importimportWavesurferfrom'videojs-wavesurfer/dist/videojs.wavesurfer.js';
I already installed the plugins
videojs-wavesurfer
(npm install videojs-wavesurfer --save
) andwavesurfer.js
(npm install wavesurfer.js --save
) and now I want to use them in my Ionic 3 component.I was working only with
Video.js
, and all it working fine. But now, I need to addvideojs-wavesurfer
plugin.I tried:
Component.html:
Component.ts:
But console prints the following error:
So, I changed the code to:
And apparently recognized the plugin, but now I get this error:
How can I fix it?
The text was updated successfully, but these errors were encountered: