Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR Error: Could not initialize the Brightcove Player #74

Open
subhojit-cn opened this issue Jun 11, 2021 · 0 comments
Open

ERROR Error: Could not initialize the Brightcove Player #74

subhojit-cn opened this issue Jun 11, 2021 · 0 comments

Comments

@subhojit-cn
Copy link

I created a player the first time on page load it's working fine.
Then on some button click, I removed all the "video-js" related HTML from the "refNode" container div.
Then I again run

brightcovePlayerLoader({
        refNode: <PLACE_HOLDER>,
        accountId: <PLACE_HOLDER>,
        playerId: <PLACE_HOLDER>,
        videoId: <PLACE_HOLDER>,
        embedOptions: {
          tagName: brightcovePlayerLoader.EMBED_TAG_NAME_VIDEO,
        },
        onSuccess(success) {
          console.log(success)
        },
       onFailure(err) {
          console.log(err)
       }
})

But on that time that throws below error

ERROR Error: Could not initialize the Brightcove Player.
    at initPlayer (brightcove-player-loader.es.js:1001)
    at loadPlayer (brightcove-player-loader.es.js:1048)
    at brightcovePlayerLoader (brightcove-player-loader.es.js:1091)
    at buildPlayer (BrightcoveVideoGallery.vue:75)
    at Proxy.thumbClick (BrightcoveVideoGallery.vue:124)
    at onClick (BrightcoveVideoGallery.vue:15)
    at callWithErrorHandling (runtime-core.esm-bundler.js:154)
    at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:163)
    at HTMLDivElement.invoker (runtime-dom.esm-bundler.js:308)

Note: If I click the button a third time then we can able to enter into the success block. Really can't able to find a solution to this weird issue.

Please suggest some solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant