Replies: 2 comments
-
2 ways to initialize a pluginAccording to docs, there are two ways to set up or initialize a videojs plugin: How custom plugin is initializedSource code initializes the custom plugin by: this.player = videojs(domPlayer, passOptions);
/*
* Call plugin.
*/
this.player.mediaCmsVjsPlugin(
domPlayer,
pluginOptions,
pluginState,
pluginVideoResolutions,
pluginVideoPlaybackSpeeds,
pluginStateUpdateCallback,
onNextButtonClick,
onPrevButtonClick
); How to register
|
Beta Was this translation helpful? Give feedback.
-
This approach didn't work: |
Beta Was this translation helpful? Give feedback.
-
The problem is explained in detail by this thread:
mediacms-io/mediacms#403 (comment)
Summarize
Let me summarize it here. There is a custom videojs plugin:
https://github.com/mediacms-io/mediacms/tree/main/frontend/packages/vjs-plugin
I need to use another plugin i.e.
videojs-wavesurfer
, to be able to visualize the audio:https://github.com/collab-project/videojs-wavesurfer
Question
Is it even feasible to use the
videojs-wavesurfer
plugin alongside the custom plugin?If it's feasible, I need some hints on how it can be done. Is there any helpful example? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions