Wavesurfer is not working in iframe #3756
Replies: 5 comments 5 replies
-
It works w/o any problem in an iframe on this site: https://wavesurfer.xyz/examples/ Perhaps you're passing the wrong element as a container. |
Beta Was this translation helpful? Give feedback.
-
@katspaugh Thanks for pointing out. But seems I am not sending wrong element as a container.
And this div element is rendered inside iframe. |
Beta Was this translation helpful? Give feedback.
-
Inside iframe, the container element does not pass this condition.
|
Beta Was this translation helpful? Give feedback.
-
@katspaugh I am building a widget using react. It is wrapped with iframe. |
Beta Was this translation helpful? Give feedback.
-
This is AudioPlayer.tsx.
And this is the parent component.
|
Beta Was this translation helpful? Give feedback.
-
Iframe has its own environment so this code is not working in parentFromOptionsContainer function of renderer.js.
Maybe we can use other approach to check the current is valid DOM element or not.
For example:
Beta Was this translation helpful? Give feedback.
All reactions