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

remove the cld video player if its not included #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asad-rafter
Copy link
Contributor

No description provided.

@@ -73,6 +73,18 @@ window.renderCloudinaryVideoPlayer = function () {
}
}
});
const targetNode = document.querySelector('#cld-video-player');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why aren't we preventing the node from getting created at the first place?
Wouldn't we have the browser loading the VP widget and then discarding it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It only happening in the case of custom mapping, in that scenario cartridge is creating URLs based on the configurations in custom mapping and it's not sure if the video is available in DOM before creating the URL, and I don't find any way to check if the video is available in DOM before rendering the video player

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

Successfully merging this pull request may close these issues.

2 participants