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

CLD-340-fixed-video-image-issue #98

Conversation

asad-rafter
Copy link
Contributor

No description provided.

</div>

<isscript>
Copy link
Collaborator

Choose a reason for hiding this comment

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

The CSS part should be before the HTML

@@ -35,7 +38,7 @@ $(document).ready(function () {
conf.secure_distribution = window.cname;
conf.private_cdn = true;
}
window.cld = window.cloudinary.Cloudinary.new(conf);
initializeCloudinaryPlayers();
window.conf = conf;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please move this part and the related code to window.initializeCloudinaryPlayers();

@asad-rafter
Copy link
Contributor Author

@yuval-cloudinary requested changes have been made

@asad-rafter
Copy link
Contributor Author

@yuval-cloudinary Just so you know as I mentioned in ticket comments these changes are not working and they are not allowing to render the video. Without these changes, it works fine.

if (shrinkWrapJs) {
shrinkWrapJs.parentNode.removeChild(shrinkWrapJs);
}
window.cldPDVideoPlayer = cloudinary;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@asad-rafter This should be part of the script onload

* it waits until streaming videos fully load. We need to delay initializing
* Cloudinary video player a little bit.
*/
initializeCloudinaryPlayers();
Copy link
Collaborator

Choose a reason for hiding this comment

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

@asad-rafter This should be part of the script onload

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yuval-cloudinary is our custom method, it will not work on script onLoad because when the cloudinary script loads our custom script hasn't loaded yet and it gives an error that initializeCloudinaryPlayers(); it is not a function.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@asad-rafter Then please move the call to cloudinaryVideos.js so it is loaded before trying to execute initializeCloudinaryPlayers()

Copy link
Collaborator

Choose a reason for hiding this comment

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

@asad-rafter Our end goal is that each page to have the following structure:

  1. A single line calling CLDPDShrinkwrapJSURL
  2. One or more div sections of cloudinary-video-container
  3. A call to initializeCloudinaryPlayers()

These sections should be introduced one following the other without any delays or async operations

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yuval-cloudinary we are not using CLDPDShrinkwrapJSURL in video

Copy link
Contributor Author

@asad-rafter asad-rafter Jan 27, 2025

Choose a reason for hiding this comment

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

@asad-rafter Then please move the call to cloudinaryVideos.js so it is loaded before trying to execute initializeCloudinaryPlayers()

@yuval-cloudinary Its already in cloudinaryVideos.js, I didn't get your point here

@asad-rafter
Copy link
Contributor Author

This PR is not needed as we need to create a new PR with new changes

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