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

npm install cloudinary-video-player #558

Closed
instantgis opened this issue Feb 15, 2024 · 2 comments · Fixed by #560
Closed

npm install cloudinary-video-player #558

instantgis opened this issue Feb 15, 2024 · 2 comments · Fixed by #560

Comments

@instantgis
Copy link

I am trying to use this in an Angular 17.1.2 app set for the new ESM build @angular-devkit/build-angular:application.
I import this in a stand alone component:

import cloudinary from 'cloudinary-video-player';

When I try to use it:

ngOnInit(): void {
cloudinary.videoPlayer('player', {
cloudName: 'demo'
});
}

I get an error on cloudinary.videoPlayer

Property 'videoPlayer' does not exist on type 'typeof VideoPlayer'

I go to definition on cloudinary-video-player and I see squiggles on

import { VideoJsPlayerOptions } from 'video.js';

Module '"video.js"' has no exported member 'VideoJsPlayerOptions'. Did you mean to use 'import VideoJsPlayerOptions from "video.js"' instead?

What am I doing wrong?
Anyone has this working in Angular even if its an earlier version?

I want to use this because of the analytics features. I am using

"cloudinary-video-player": "^1.10.6",
@instantgis
Copy link
Author

I tried to make a stackblitz to illustrate the issue and it threw errors as soon as I tried to add

import cloudinary from 'cloudinary-video-player';

to the boilderplace Angular app

image

@tamaracloudinary
Copy link

Hi there @instantgis,
Thank you for bringing this to our attention! We're aware of this issue, it holds a high priority for resolution.
We will report here once a fix is deployed.
Thanks again!
Tamara

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 a pull request may close this issue.

2 participants