Closed danieladarve closed 5 years ago
Hey @k0d3rR, did you find any fixes for your issue ?
Hey @k0d3rR, did you find any fixes for your issue ?
add js file named vue-plyr.js in the plugins folder and add this: `import Vue from 'vue' // eslint-disable-next-line import/no-named-as-default import VuePlyr from 'vue-plyr'
Vue.use(VuePlyr, { plyr: { fullscreen: { enabled: false } }, emit: ['ended'] })`
Then on your component you will be able to reference it like this:
`
</no-ssr>`
Hello,
I followed the example on https://github.com/surmon-china/vue-video-player/tree/master/examples/nuxt-ssr-example which works great as it is. But when I try to add a plugin, it won't work.
How can I go about adding a plugin to this component? I've tried importing the plugin inside the component, but I always get the following error:
VIDEOJS: ERROR: The "youtube" tech is undefined. Skipped browser support check for that tech.
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this media. MediaError {code: 4, message: "No compatible source was found for this media.", constructor: Object}
in nuxt-video-player-plugin.js I have:
Also tried to import the plugin inside the component and setting the plugin data property to Youtube, and 'videojs-youtube', but still it doesnt work
https://codesandbox.io/s/q4l33rvj1j
I am using NUXT 2.4.5. videojs-youtube 2.6.0 vue-video-player 5.0.2
Thanks