darkylmnx / vue-youtube-iframe-api

Vue JS component wrapping a Youtube video player with the ability to add your own custom UI.
MIT License
10 stars 2 forks source link

Not Working on Cordova Electron #1

Closed erwinyusrizal closed 3 years ago

erwinyusrizal commented 4 years ago

I use this plugin to run youtube iframe on electron app, but seems the YT API instance not created, I got error:

[Vue warn]: Error in callback for watcher "ytid": "TypeError: this.player[method] is not a function"

TypeError: this.player[method] is not a function
    at VueComponent.loadById (Player.js:84)
    at VueComponent.ytid (Player.js:37)

any idea?

ghost commented 4 years ago

@erwinyusrizal it must be a CSP issue, check that : https://stackoverflow.com/questions/51969512/define-csp-http-header-in-electron-app https://github.com/vuejs/vue-devtools/issues/616#issuecomment-479549050

hope it helps

darkylmnx commented 3 years ago

Closing this since no news on it.