Closed gsimplicio-emed closed 1 year ago
For posterity, I haven't found a way to tackle this use-case. I had to give on using this lib in favour of the following:
import VueVideoPlayerPlugin from '@millicast/vue-viewer-plugin';
import { useEffect, useRef } from 'react';
import { createApp } from 'vue';
import VueVideoPlayer from './VueVideoPlayer.vue';
export const VideoPlayer = (props: VideoPlayerProps) => {
const vueAppRef = useRef(null);
useEffect(() => {
const app = createApp(VueVideoPlayer, props).use(VueVideoPlayerPlugin, {});
app.mount(vueAppRef.current!);
return () => app.unmount();
}, []);
return <div ref={vueAppRef} />;
};
Hi there, to start off I'd like to thank you for writing such useful lib. Unfortunately, I haven't found out how to use a Vue app, which has plugins installed , in the documentation.
Happy to contribute towards improving anything in this amazing library.
This is the "working" version of what I need to do, could you please help figuring out to how use Vue apps that have plugins in React app? https://github.com/guilhermehkr/vue-react-poc
As you can see below and in the Github repo, I've tried using both Vue app returned by
createApp()
and the app's root component. Which attempt resolves to a different error.